#include <gmlib/sm9/internal/sm9_field.h>
#include <stdexcept>
#include <cstring>

using namespace sm9::internal;

void test_sm9_fp_mul()
{
    sm9_fp_t    a, b, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0x28,0xea,0x3d,0x0a,0x6d,0xb5,0xb5,0x54,0xba,0x9d,0xa0,0xd0,0x94,0x21,0x9f,0xf2,0xbc,0x0a,0x04,0xfa,0xee,0x33,0xd7,0x3c,0xc5,0xd6,0x0a,0xfa,0xed,0xb9,0x66,0xdc};
    static std::uint8_t b0[32] = {0x1f,0xe8,0x01,0xee,0xed,0xa1,0xbc,0x4d,0xb1,0xbe,0x2f,0xdc,0xd1,0x96,0x45,0xb6,0xbc,0x37,0x6c,0x3f,0x62,0x3d,0xbb,0xd0,0x38,0x8b,0x56,0x3b,0x13,0xca,0x09,0x8a};
    static std::uint8_t c0[32] = {0x80,0x12,0x9d,0x35,0x69,0xd2,0xf6,0xf8,0xc2,0xce,0xd7,0x3e,0xa8,0x64,0x9d,0x74,0x20,0x78,0x51,0x29,0x89,0x7f,0xb2,0xd7,0xdb,0x60,0x31,0x3c,0x27,0x94,0xf2,0x4f};
    sm9_fp_from_bytes(a, a0);
    sm9_fp_from_bytes(b, b0);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a1[32] = {0x8d,0x58,0x32,0x87,0x37,0x8b,0x5e,0xa8,0x7f,0xc0,0xac,0x3d,0x7e,0xa7,0x34,0xe8,0x8b,0x11,0xb2,0x90,0x7f,0xa9,0x4c,0x7d,0x0c,0x5e,0x24,0xac,0xba,0xf9,0xa2,0x55};
    static std::uint8_t b1[32] = {0x5f,0xc0,0xcb,0x27,0x04,0xbb,0xd8,0xb8,0x04,0x0a,0x26,0xf2,0x98,0x28,0x7e,0xbb,0xea,0x1c,0x14,0x60,0xc2,0x45,0xa3,0x65,0xe5,0x83,0x15,0x81,0xfd,0x8b,0x03,0x56};
    static std::uint8_t c1[32] = {0x50,0x89,0x77,0x35,0xbe,0x32,0x73,0x39,0x23,0xb8,0xc3,0x78,0x47,0x72,0x59,0x28,0xc5,0x5f,0x62,0xdc,0xd2,0x30,0x96,0x7d,0x93,0x4c,0xe4,0xae,0xce,0x18,0x20,0x20};
    sm9_fp_from_bytes(a, a1);
    sm9_fp_from_bytes(b, b1);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a2[32] = {0x1f,0x76,0x4d,0x00,0xec,0x45,0x49,0x50,0x76,0x46,0xba,0x77,0xcf,0xa9,0x16,0xa3,0x63,0xff,0xe2,0x0b,0x10,0xd2,0x59,0x94,0x47,0x74,0xeb,0xe5,0x5b,0x4d,0x84,0x0b};
    static std::uint8_t b2[32] = {0x0e,0x28,0x82,0x8f,0x1f,0x67,0xf2,0x43,0x15,0x40,0x44,0xe4,0xde,0x5d,0x88,0x2a,0xc6,0x07,0x1a,0xde,0xc2,0x24,0x9d,0x55,0x35,0x24,0xad,0xa1,0xc8,0x3a,0xe8,0x81};
    static std::uint8_t c2[32] = {0x19,0x41,0xbf,0xbf,0xbb,0xb0,0x0e,0x75,0x2f,0x65,0x2b,0xae,0xf9,0x72,0x62,0x9a,0xd8,0x42,0xac,0x6e,0xa1,0xbe,0xe0,0x8d,0x52,0x3b,0xa3,0x96,0x89,0xec,0xa3,0x10};
    sm9_fp_from_bytes(a, a2);
    sm9_fp_from_bytes(b, b2);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a3[32] = {0x96,0x91,0xf2,0xca,0xfc,0xc0,0x1e,0x01,0xc6,0x57,0x2f,0x74,0x78,0x68,0x59,0xa5,0x1a,0x5a,0xe8,0x2a,0x00,0x33,0x11,0xd9,0x41,0xbb,0xb4,0x65,0x09,0x4c,0x73,0x7c};
    static std::uint8_t b3[32] = {0x58,0x9b,0x01,0xed,0x3c,0x60,0xff,0xe9,0xc3,0x60,0x6a,0xd3,0x4e,0x72,0x0a,0xc3,0x14,0x3a,0xa2,0x1c,0xbf,0xbd,0xcb,0xc8,0x81,0x69,0x06,0xed,0x0b,0x64,0xc3,0xec};
    static std::uint8_t c3[32] = {0x4b,0xe6,0x6a,0xca,0x2d,0xf1,0x0e,0x10,0x0c,0x23,0xb7,0xd1,0x72,0x8d,0xfc,0x20,0x9d,0x17,0x74,0x5b,0x20,0xab,0x89,0xaa,0x98,0x9a,0xaa,0x4b,0xcd,0x01,0x6c,0x55};
    sm9_fp_from_bytes(a, a3);
    sm9_fp_from_bytes(b, b3);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a4[32] = {0x21,0xaf,0xdc,0x9f,0x7d,0x4b,0x6f,0xbf,0x25,0xc2,0x42,0x2e,0xcf,0xc0,0xc8,0x36,0x1b,0x69,0x3b,0x0e,0xf4,0xef,0xba,0x86,0xc8,0x1a,0x20,0xa9,0xeb,0x63,0x42,0xf3};
    static std::uint8_t b4[32] = {0x06,0xf7,0xe7,0x47,0x04,0x3a,0x3c,0x47,0x9c,0x6a,0x19,0x39,0x5e,0x8c,0x25,0x25,0xf5,0x4b,0x5e,0xa0,0xef,0x8c,0x2d,0x7b,0xe3,0xa7,0x32,0x1e,0x35,0x01,0x30,0x44};
    static std::uint8_t c4[32] = {0x0d,0xc2,0x5c,0x26,0xca,0x20,0x14,0xbe,0x2d,0xbe,0xf9,0x50,0xea,0xaf,0xc6,0xa0,0x0a,0x26,0x67,0x7c,0xdf,0xba,0x39,0xff,0xad,0x86,0xe3,0x1a,0x43,0xc7,0x24,0x15};
    sm9_fp_from_bytes(a, a4);
    sm9_fp_from_bytes(b, b4);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a5[32] = {0x33,0xab,0x8e,0xcc,0x47,0xfc,0x59,0x71,0x27,0xa9,0x57,0x76,0xea,0xf9,0xeb,0xb7,0x26,0x2c,0xb7,0xce,0x9c,0xcb,0x3a,0xa4,0xfb,0x8f,0xe3,0x0e,0x5d,0x0c,0xcc,0xd9};
    static std::uint8_t b5[32] = {0x37,0x56,0x57,0x1d,0x32,0x38,0xfe,0x6b,0x6f,0x45,0x50,0x55,0x5c,0x56,0xc3,0xf2,0x53,0x2a,0xc1,0xc3,0x09,0x42,0xa3,0x4e,0xed,0x97,0xc8,0xac,0x47,0x57,0x99,0x2a};
    static std::uint8_t c5[32] = {0x82,0xfe,0x1e,0x84,0xf1,0x94,0xd1,0x87,0xc9,0xac,0xb5,0xbe,0x3f,0xef,0x97,0x45,0xe3,0x2c,0x47,0xe2,0x3a,0xc8,0x59,0xbe,0x9d,0x1d,0xd8,0xb0,0x0c,0x02,0xb5,0x29};
    sm9_fp_from_bytes(a, a5);
    sm9_fp_from_bytes(b, b5);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a6[32] = {0x16,0x3a,0x38,0x01,0x4d,0x6d,0x49,0xc8,0xbc,0xb6,0xdf,0x4d,0xe3,0xfe,0x12,0xe4,0x30,0xb4,0xb3,0x80,0x19,0x40,0x2b,0x02,0xaf,0x8b,0xcd,0x1b,0xf3,0xac,0xbe,0xba};
    static std::uint8_t b6[32] = {0x00,0x13,0xb4,0x7f,0xbf,0x72,0x57,0x90,0x52,0x2c,0x06,0x7a,0x52,0x5a,0xe2,0x80,0xad,0x01,0x78,0xc7,0x4d,0x3b,0x03,0x6c,0xd3,0x19,0x90,0xdf,0xe3,0x7a,0x7f,0xa7};
    static std::uint8_t c6[32] = {0x5b,0xd0,0xcb,0x76,0x2b,0xd9,0x18,0x3f,0xd9,0xd6,0x2e,0x89,0x6e,0xf5,0x60,0x28,0xab,0x01,0x04,0xb1,0x01,0xf1,0xfd,0xae,0x0d,0xad,0x4a,0x24,0x50,0x86,0x60,0x32};
    sm9_fp_from_bytes(a, a6);
    sm9_fp_from_bytes(b, b6);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a7[32] = {0x34,0x19,0x2f,0x9c,0x6a,0x2e,0x31,0x53,0x52,0xbc,0x36,0xbf,0x0c,0x32,0xee,0xd6,0x38,0x0e,0xba,0xa6,0x9c,0xbe,0x0f,0x4f,0xbf,0x7c,0x76,0xb9,0x7b,0x11,0xa5,0x85};
    static std::uint8_t b7[32] = {0x31,0x65,0x61,0x93,0xda,0x79,0xa4,0x2b,0x38,0x3f,0x07,0x36,0x38,0x19,0x4f,0x26,0x25,0x42,0x9a,0xa9,0x83,0x0e,0xd6,0x5e,0x2e,0xf2,0xdb,0x88,0x62,0x0e,0x86,0xb0};
    static std::uint8_t c7[32] = {0x73,0xc3,0x36,0x78,0x52,0x1c,0x7b,0x07,0x34,0xdf,0xda,0xae,0x1a,0x24,0x93,0xa7,0xf6,0x15,0x3d,0x21,0x10,0xb8,0xe8,0x9d,0x97,0xa8,0xda,0xbb,0x34,0xf7,0xd6,0x99};
    sm9_fp_from_bytes(a, a7);
    sm9_fp_from_bytes(b, b7);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a8[32] = {0x2c,0xb6,0xeb,0xf1,0x33,0x23,0x2c,0x63,0x81,0xe0,0x91,0xa1,0x70,0x4f,0xbe,0xd0,0x57,0x34,0x18,0x50,0x9a,0x4e,0xe4,0xc3,0x22,0xdb,0x46,0xb0,0x82,0x9c,0xb1,0x7d};
    static std::uint8_t b8[32] = {0x08,0x1d,0x13,0xe3,0x33,0x70,0xf5,0x06,0xcc,0x95,0x1b,0x9e,0xcc,0x47,0x5e,0xc6,0x29,0xf4,0xd9,0x43,0xc8,0xe8,0x2c,0x60,0x0d,0x8c,0xde,0xe9,0xd2,0x64,0x8d,0x10};
    static std::uint8_t c8[32] = {0xab,0x4a,0xb5,0xf2,0xac,0x5c,0xfc,0x13,0x9f,0x7c,0x96,0xbf,0x06,0xcb,0xcc,0x0f,0x1b,0xf8,0xcb,0x8c,0x44,0xd7,0x31,0x06,0x20,0x9f,0x5a,0xef,0xf4,0x22,0x7b,0xd3};
    sm9_fp_from_bytes(a, a8);
    sm9_fp_from_bytes(b, b8);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a9[32] = {0x44,0x2c,0xb9,0x67,0x84,0xe6,0x6f,0x6b,0x21,0xb1,0xd0,0xde,0xbd,0x30,0x69,0x54,0x5e,0x01,0x7b,0xc6,0x27,0x33,0xfe,0xcd,0x77,0x00,0x3e,0x89,0x7d,0x00,0x22,0x0b};
    static std::uint8_t b9[32] = {0x5b,0x4e,0x2c,0x69,0xdc,0x52,0x0b,0xa8,0x71,0x95,0x62,0x74,0x65,0xf8,0x08,0xfd,0xc4,0x20,0xfd,0x02,0xb9,0x59,0xa5,0xa7,0x06,0xa7,0xad,0x49,0x82,0x12,0x01,0xc9};
    static std::uint8_t c9[32] = {0x41,0x49,0x41,0x91,0x28,0x78,0x19,0x4a,0xfa,0x26,0x86,0x0c,0xd4,0x1f,0x69,0xcf,0xba,0xf6,0xde,0x22,0xaa,0x2f,0xa1,0x35,0x01,0x3e,0xef,0x2f,0x26,0xa1,0x73,0xd3};
    sm9_fp_from_bytes(a, a9);
    sm9_fp_from_bytes(b, b9);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a10[32] = {0x24,0x5e,0xf5,0xef,0xaa,0x98,0xbd,0x63,0xce,0xb8,0x52,0x58,0x3f,0xa1,0xfd,0xdf,0x0a,0x94,0x5f,0xbb,0x24,0xac,0x62,0xf0,0xff,0x6c,0xae,0x1f,0x20,0x2e,0xc7,0x3a};
    static std::uint8_t b10[32] = {0x04,0xe2,0x1e,0xaf,0x01,0xc1,0xcc,0x7f,0x88,0x52,0xda,0x02,0xe5,0x99,0x68,0xfe,0x36,0x67,0x99,0x7d,0x69,0xa2,0xe7,0x51,0xb7,0x55,0x49,0x4c,0x19,0x86,0x6a,0x07};
    static std::uint8_t c10[32] = {0x66,0xc2,0x62,0x06,0x1d,0xec,0xac,0x11,0xf8,0xbc,0x4e,0x36,0x64,0xbe,0x3a,0x65,0x30,0x16,0x9b,0x38,0xb4,0x7d,0xfd,0xee,0x56,0x6c,0x23,0x59,0xd3,0x06,0xf3,0x20};
    sm9_fp_from_bytes(a, a10);
    sm9_fp_from_bytes(b, b10);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a11[32] = {0x7e,0x4a,0x8d,0xad,0x27,0xd7,0xcb,0xd6,0x67,0x2d,0x0a,0xba,0x61,0xe4,0x0e,0xcf,0x91,0xbf,0x5e,0xf3,0x59,0x1c,0xb6,0xa3,0xcf,0x4a,0x40,0x1c,0x9c,0xa9,0xec,0x2c};
    static std::uint8_t b11[32] = {0x06,0xe6,0x5c,0xeb,0x05,0x5a,0x36,0x79,0xe1,0xe7,0x03,0xc4,0xe1,0xf7,0x43,0x09,0xa6,0x7d,0xbb,0x88,0x59,0xb1,0x39,0x1e,0x1d,0x37,0xab,0xa0,0x31,0xf5,0x1d,0xf6};
    static std::uint8_t c11[32] = {0xad,0x4d,0x6e,0xfa,0xae,0x74,0xe7,0x88,0x0e,0x1e,0x66,0x6f,0xab,0xb2,0x44,0xd6,0x1a,0xb4,0x14,0x26,0xb2,0xf6,0x26,0x93,0x07,0x97,0xea,0x55,0x9e,0x90,0x22,0x8d};
    sm9_fp_from_bytes(a, a11);
    sm9_fp_from_bytes(b, b11);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a12[32] = {0x6a,0xd7,0x9e,0x21,0x56,0xe0,0xc5,0xf9,0x27,0x96,0x09,0x18,0x43,0xac,0x72,0x47,0x20,0xb7,0x88,0x37,0xaa,0xdf,0x44,0xb6,0xef,0x93,0x72,0x90,0xd5,0x86,0x58,0x03};
    static std::uint8_t b12[32] = {0x67,0x32,0xff,0xef,0x61,0xe0,0x91,0xa9,0x7d,0x39,0x1b,0xd1,0x01,0x4f,0x62,0xb7,0xfe,0x83,0xcb,0x55,0x47,0xef,0x98,0xd3,0x02,0x51,0xa4,0x9f,0x4c,0xfb,0xa0,0xd4};
    static std::uint8_t c12[32] = {0x06,0xcd,0xff,0x12,0x5d,0x1b,0x88,0x3a,0xbb,0x9a,0xc5,0xec,0x6a,0x19,0x0c,0xb9,0xae,0xe7,0x99,0x4c,0x08,0xe6,0xe2,0x77,0x2a,0x76,0xa9,0xc9,0xf0,0xbd,0x22,0x63};
    sm9_fp_from_bytes(a, a12);
    sm9_fp_from_bytes(b, b12);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a13[32] = {0x77,0x8a,0xdc,0x32,0xb4,0xe9,0xfe,0x13,0xd1,0x92,0x85,0x43,0x2a,0xf4,0xb0,0x6a,0x10,0xa7,0x05,0xb9,0x4f,0x80,0xc8,0xc3,0xcb,0x65,0xaa,0x75,0x4a,0x8a,0xe8,0x04};
    static std::uint8_t b13[32] = {0x46,0x28,0x71,0xd0,0x8d,0x93,0x09,0x8c,0xde,0x88,0x81,0xbd,0x82,0x3d,0x34,0x4d,0x36,0x49,0xd8,0xa9,0x3e,0xd0,0xdc,0x3e,0x2f,0xae,0x2e,0x18,0xff,0xca,0x6d,0x5a};
    static std::uint8_t c13[32] = {0x0f,0x6d,0x2c,0xf8,0x1d,0xb3,0x9d,0x85,0xe0,0xd8,0xb5,0x85,0x3e,0x44,0x18,0x6f,0x0c,0x35,0x30,0xb8,0x0e,0x4f,0x3f,0x18,0xdf,0xb4,0xc9,0x9e,0xbd,0xbb,0xe3,0xda};
    sm9_fp_from_bytes(a, a13);
    sm9_fp_from_bytes(b, b13);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a14[32] = {0x6a,0x28,0x9d,0xc1,0x73,0x73,0x4c,0xe9,0x34,0x6b,0x04,0xeb,0x1d,0xb9,0xde,0x21,0x1c,0x80,0xab,0x21,0x35,0x55,0x3b,0x52,0x84,0x05,0x96,0xfe,0x5f,0xa8,0xc4,0xb5};
    static std::uint8_t b14[32] = {0x88,0x21,0x6b,0x8c,0x0a,0xd2,0x94,0xa6,0x25,0x46,0xbb,0xd7,0x3f,0x23,0x89,0x6c,0xd4,0x94,0x20,0x65,0x8d,0x65,0xc6,0xa3,0x0c,0x07,0xee,0x36,0x1e,0x9b,0x33,0x2d};
    static std::uint8_t c14[32] = {0xae,0x87,0x16,0x0b,0x72,0x85,0xdc,0x79,0x5f,0x74,0xc9,0x62,0xc8,0x3b,0xb7,0x7f,0x74,0x11,0x20,0xeb,0xdb,0xa6,0x90,0x97,0xaa,0xa1,0x41,0x3d,0x62,0xfb,0x54,0x3c};
    sm9_fp_from_bytes(a, a14);
    sm9_fp_from_bytes(b, b14);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a15[32] = {0x19,0x7d,0x1e,0xa7,0xdf,0x17,0x99,0x5c,0x30,0x2b,0x62,0x19,0xfd,0x91,0xe3,0xb5,0xcf,0xff,0x4e,0x90,0x32,0xc5,0x2d,0x39,0x19,0xe5,0x47,0x85,0x82,0x88,0x59,0xf8};
    static std::uint8_t b15[32] = {0x3b,0xac,0x2c,0x09,0x1e,0x2f,0xb0,0xf1,0x51,0x1b,0x6e,0x39,0x76,0x02,0x2f,0x28,0xf3,0x9c,0xb8,0x96,0x68,0xb8,0xc0,0x41,0x39,0x12,0x23,0x4a,0x7b,0x3d,0x20,0x9e};
    static std::uint8_t c15[32] = {0x4f,0x4f,0x33,0x6d,0x80,0xae,0x1c,0x48,0x99,0x71,0x67,0xa7,0x6e,0x8c,0xf5,0xac,0x28,0xc3,0x8a,0x3c,0xf2,0x90,0xa2,0x4a,0x2e,0x74,0x98,0x9f,0xdb,0x7c,0x09,0x99};
    sm9_fp_from_bytes(a, a15);
    sm9_fp_from_bytes(b, b15);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a16[32] = {0x1f,0x28,0x89,0xee,0x26,0x4f,0x36,0xf7,0x78,0x71,0x36,0x8f,0x8a,0x37,0x39,0x76,0xe5,0x48,0xf7,0x96,0xbe,0x47,0x0c,0x8f,0x53,0x04,0xb2,0xc0,0x9b,0x54,0x29,0xef};
    static std::uint8_t b16[32] = {0x70,0xf7,0xd7,0x56,0x94,0x31,0x62,0xa2,0x70,0x1d,0xf8,0x16,0xe5,0x92,0x62,0xb2,0x06,0x4b,0x3a,0xdb,0xd2,0x2a,0xa5,0xc8,0x67,0xfd,0x3c,0x7c,0x73,0x39,0xe7,0x2b};
    static std::uint8_t c16[32] = {0x91,0xd8,0xcd,0x29,0xe8,0x23,0x4f,0x14,0x06,0xd8,0x1d,0xdb,0x04,0x30,0x73,0x1e,0x09,0x28,0x9b,0xd5,0x19,0x0a,0x53,0x04,0xea,0xf9,0xb5,0x54,0x74,0x84,0xd2,0xbd};
    sm9_fp_from_bytes(a, a16);
    sm9_fp_from_bytes(b, b16);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a17[32] = {0x82,0x98,0x4c,0x21,0x8c,0xa6,0xab,0x0b,0xac,0xd6,0xe3,0x91,0xc8,0x88,0x17,0xd7,0x80,0xb4,0xe4,0x10,0x7c,0x22,0xac,0x7d,0x12,0x02,0x9c,0x7e,0xb7,0x16,0x5d,0xe6};
    static std::uint8_t b17[32] = {0x3f,0xbf,0xa8,0x21,0x34,0xbe,0xfa,0x3f,0x9a,0x82,0xe8,0x75,0x55,0x6a,0x67,0x37,0x79,0x88,0x71,0xa4,0x8d,0xbb,0xa7,0x89,0xa7,0x00,0xfa,0x51,0xc5,0x85,0x4b,0x14};
    static std::uint8_t c17[32] = {0x31,0x20,0x58,0x1c,0x70,0x22,0xc8,0x72,0x8f,0x9c,0x81,0xfa,0x94,0x7a,0x6a,0x49,0xd6,0xab,0x89,0xbb,0x1a,0x10,0x13,0xa4,0xfc,0xb5,0x60,0xcb,0x88,0x43,0xf0,0xc5};
    sm9_fp_from_bytes(a, a17);
    sm9_fp_from_bytes(b, b17);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a18[32] = {0x9f,0x34,0x33,0xe0,0x14,0xff,0x57,0xce,0x1e,0x1b,0x8b,0xb4,0x58,0xc3,0x24,0x5e,0x68,0xf4,0x72,0x4a,0x98,0xd0,0x24,0xd0,0xce,0x7d,0xc8,0xd3,0x51,0x50,0x77,0x13};
    static std::uint8_t b18[32] = {0x3e,0xfe,0x4c,0xd1,0x7c,0x1f,0xd2,0x7f,0x1c,0x13,0xf4,0x99,0x28,0x79,0xdf,0xc7,0x90,0xda,0x47,0xe7,0x4d,0xfc,0xda,0x65,0x71,0x89,0xd6,0x65,0xe1,0x8b,0xf2,0x8e};
    static std::uint8_t c18[32] = {0x60,0x71,0xec,0xc9,0x94,0xb2,0xaf,0x36,0xf9,0x83,0xe0,0x9f,0xb5,0xe5,0x07,0xa5,0xf4,0x82,0x4b,0x8b,0x84,0xdf,0x79,0xcd,0x95,0x50,0x23,0x2c,0xbe,0xda,0xa0,0xa8};
    sm9_fp_from_bytes(a, a18);
    sm9_fp_from_bytes(b, b18);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a19[32] = {0x1f,0xee,0x4d,0x80,0xbd,0xa0,0xc8,0xfe,0xf7,0xfd,0x4c,0x1a,0x9f,0x7e,0x08,0xd9,0x85,0x53,0x68,0xd2,0x2b,0x0c,0xb5,0xcd,0x84,0xbd,0x24,0x4e,0x86,0x5b,0x64,0xd1};
    static std::uint8_t b19[32] = {0x3a,0xfb,0xee,0xe4,0x5a,0x6d,0xcc,0xc3,0x98,0x1f,0x75,0xa2,0x08,0x00,0x2d,0x39,0x95,0x9d,0xf9,0xbc,0xf8,0x17,0x93,0x2b,0x30,0x89,0xb9,0x4a,0xed,0x3d,0x38,0x83};
    static std::uint8_t c19[32] = {0x0a,0x8c,0x6d,0xbd,0x49,0x17,0x41,0xd3,0x69,0x1c,0x34,0x84,0x72,0x1c,0xe5,0x03,0xb0,0x76,0x24,0x9f,0x51,0x39,0xc8,0x2d,0xb7,0x86,0xa7,0x8d,0x27,0xc7,0x36,0x1a};
    sm9_fp_from_bytes(a, a19);
    sm9_fp_from_bytes(b, b19);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a20[32] = {0x27,0xe0,0xd1,0x36,0x65,0xac,0x80,0xac,0x9b,0x5c,0x3d,0xda,0xdf,0x7f,0x51,0x31,0x10,0x02,0xb9,0xff,0xd3,0x9f,0x4b,0x3f,0x1e,0x07,0x96,0xd0,0xb6,0xd6,0xb6,0xc7};
    static std::uint8_t b20[32] = {0x2e,0xcc,0x14,0x38,0x8c,0x85,0xbf,0xef,0xf5,0x00,0x69,0xc5,0xce,0x31,0xb8,0xc1,0xe3,0xfd,0x30,0x99,0x73,0x53,0x43,0x45,0x03,0xd3,0xe1,0x48,0xb8,0x77,0x9e,0x71};
    static std::uint8_t c20[32] = {0x23,0x7c,0xde,0x59,0x6a,0xf4,0x3a,0x44,0x73,0x68,0x48,0xf6,0xb3,0xdc,0x8d,0x99,0xf5,0x6e,0x38,0xc9,0xbc,0xe8,0xd2,0x61,0x05,0x1a,0xd0,0x24,0x69,0x67,0xdf,0xa6};
    sm9_fp_from_bytes(a, a20);
    sm9_fp_from_bytes(b, b20);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a21[32] = {0x11,0xdd,0x2a,0xae,0x15,0x73,0xcf,0x85,0x9f,0xd6,0x69,0x9c,0x87,0x93,0x22,0x43,0x96,0x67,0x1e,0x26,0x02,0x58,0x3b,0xa1,0x20,0xed,0x1c,0xda,0x70,0xd7,0xba,0xa3};
    static std::uint8_t b21[32] = {0x5b,0x52,0xea,0x8f,0x00,0x7f,0x61,0x8f,0x3c,0x2c,0x3f,0xe5,0x76,0x76,0xdf,0xf1,0x86,0xe4,0x07,0xa4,0x27,0x28,0x56,0xeb,0x18,0x5a,0x88,0x88,0xf5,0xd3,0xab,0xe5};
    static std::uint8_t c21[32] = {0x1c,0xd7,0x16,0xff,0x17,0x57,0x1b,0xea,0x08,0xae,0x2e,0x2b,0xb4,0xa6,0x95,0xf4,0xa4,0x8e,0x57,0xe9,0xc2,0x5d,0xfe,0x62,0xd7,0xf8,0xfa,0x32,0xb0,0xd0,0x22,0xc1};
    sm9_fp_from_bytes(a, a21);
    sm9_fp_from_bytes(b, b21);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a22[32] = {0x85,0x30,0xb5,0x11,0xca,0x3a,0x9c,0x7a,0x09,0x3b,0x26,0xe8,0x8d,0xf2,0xa8,0xf7,0x7d,0x41,0xd0,0x79,0x00,0x3c,0x2a,0x77,0x8d,0x8d,0xfc,0x95,0xfe,0x77,0x32,0x22};
    static std::uint8_t b22[32] = {0xa5,0xcf,0x57,0x47,0x8d,0x3c,0x83,0x5b,0x60,0xd7,0x2c,0xd4,0x69,0x7a,0x51,0x93,0x9e,0x78,0x22,0x73,0x29,0xa0,0x40,0xfb,0x98,0x35,0x46,0x05,0x32,0x21,0x0d,0x33};
    static std::uint8_t c22[32] = {0x19,0x1e,0xba,0xb5,0x08,0xbe,0x73,0x6f,0x49,0x9a,0xe4,0x96,0x40,0xee,0x95,0xd8,0x7a,0x75,0xec,0x4e,0x75,0x3f,0x6e,0xf3,0x12,0xbd,0xcd,0x46,0x5b,0x8c,0x58,0x72};
    sm9_fp_from_bytes(a, a22);
    sm9_fp_from_bytes(b, b22);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a23[32] = {0x83,0xbc,0x52,0x6f,0xed,0xf4,0x0e,0x15,0x0e,0x34,0xb8,0x14,0xce,0xcf,0x5c,0x9d,0x5a,0x53,0x64,0x34,0x42,0xd4,0x67,0x2e,0x1a,0x47,0xcc,0x46,0xa2,0x2d,0xb9,0x3a};
    static std::uint8_t b23[32] = {0x6c,0xc4,0x3a,0x99,0x23,0x71,0x9e,0xa4,0x82,0x66,0xa5,0x3f,0x00,0x78,0x6e,0x42,0x3f,0xca,0x42,0x8c,0x94,0x18,0x99,0xbb,0xf8,0x5e,0xcb,0x78,0x2e,0x96,0xfd,0x17};
    static std::uint8_t c23[32] = {0x71,0x2d,0x46,0x00,0x64,0x4b,0xd4,0xb0,0xd2,0x54,0x9d,0x05,0xc2,0x7d,0x81,0x5e,0x1c,0xa0,0x48,0xe9,0xa9,0xd1,0xe1,0x05,0xed,0x0b,0xb9,0x9d,0x44,0xa3,0x4b,0x8d};
    sm9_fp_from_bytes(a, a23);
    sm9_fp_from_bytes(b, b23);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a24[32] = {0x0a,0x2e,0x2b,0x38,0xcc,0x14,0x78,0xa4,0xca,0x57,0x4b,0x8c,0x31,0x68,0x65,0x44,0x7f,0xcc,0xc9,0xcd,0x03,0xc3,0x49,0x7a,0x3f,0x26,0x0c,0x83,0xbe,0xf4,0x66,0xe5};
    static std::uint8_t b24[32] = {0x55,0x96,0x37,0x6b,0x01,0xbe,0x00,0x93,0x0c,0xf8,0xdf,0x28,0x7d,0x07,0x7b,0xfd,0xc6,0x26,0xd3,0x25,0xe5,0x74,0x1d,0xa5,0x77,0x18,0x55,0x5c,0xae,0xa0,0xe6,0xbc};
    static std::uint8_t c24[32] = {0x4e,0xaf,0x71,0x2f,0xa6,0xf7,0xc6,0xef,0x1c,0xf3,0xef,0x28,0x08,0xbf,0x4f,0x09,0xab,0xcb,0x45,0xa8,0xe1,0x66,0x30,0xfc,0xc3,0x2b,0x7a,0x0a,0xd6,0x04,0x4f,0x00};
    sm9_fp_from_bytes(a, a24);
    sm9_fp_from_bytes(b, b24);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a25[32] = {0x27,0x43,0x5b,0xb1,0x41,0xba,0x4b,0x4f,0x42,0x9e,0x4d,0x8a,0x86,0x22,0x72,0xc9,0x8d,0xe8,0x3d,0x5c,0xf9,0xc4,0x34,0x59,0x6c,0x28,0x09,0x50,0x8a,0x8a,0x07,0x22};
    static std::uint8_t b25[32] = {0x19,0x67,0x47,0xad,0x92,0xa8,0x69,0xae,0x3e,0x85,0x35,0x59,0xb7,0x1a,0x04,0x9f,0x01,0x52,0x29,0x95,0x0b,0xc1,0x01,0x07,0x58,0x4f,0x3a,0xa7,0x34,0x36,0xdd,0x75};
    static std::uint8_t c25[32] = {0x80,0xd5,0x21,0x53,0x0b,0x28,0x5f,0x6c,0x15,0x51,0xb4,0xe6,0xfb,0x69,0xc6,0xcb,0xf2,0x47,0x60,0x29,0x16,0x9c,0x1e,0x45,0x54,0x91,0x85,0x08,0xba,0x8a,0x53,0x37};
    sm9_fp_from_bytes(a, a25);
    sm9_fp_from_bytes(b, b25);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a26[32] = {0x29,0xec,0x31,0x65,0x5b,0x91,0xa7,0xfa,0xf4,0x11,0x75,0xbb,0x4f,0x5d,0xb7,0x92,0xd2,0x10,0x9a,0x6f,0xd7,0xdf,0xa8,0x34,0xbb,0xd5,0x49,0x38,0xa7,0xc6,0x94,0x51};
    static std::uint8_t b26[32] = {0x43,0x40,0xd8,0x62,0x60,0x2f,0xf7,0x4d,0xcf,0xf0,0xdf,0xe7,0x95,0x11,0x87,0xfe,0x52,0xf6,0xcc,0x7f,0xad,0x7d,0x4c,0x16,0x0b,0xcc,0x17,0xe3,0xff,0xdf,0xe2,0x66};
    static std::uint8_t c26[32] = {0x76,0x5a,0x02,0xaa,0x93,0x09,0xf0,0x79,0x04,0x54,0x45,0x6e,0x1d,0x45,0xd2,0x82,0x78,0xfa,0x78,0x92,0x93,0x3e,0x2a,0x99,0x35,0x96,0xfe,0xcd,0x54,0x1e,0xe4,0xcd};
    sm9_fp_from_bytes(a, a26);
    sm9_fp_from_bytes(b, b26);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a27[32] = {0x6e,0x6e,0xe9,0x30,0x3c,0x0f,0x06,0x63,0x79,0x0d,0xb2,0xae,0x3e,0xb0,0x26,0x81,0x0d,0x3b,0x21,0xd7,0x10,0x14,0x39,0xdd,0x49,0x85,0x4c,0xd4,0x1a,0x27,0x82,0x60};
    static std::uint8_t b27[32] = {0x2c,0x89,0xc3,0xb2,0x02,0x9c,0x31,0x83,0x2c,0x6d,0xcc,0x18,0xc2,0xab,0x23,0xf3,0x7b,0x9b,0x65,0x64,0x33,0x1c,0x42,0xc9,0xd9,0xb4,0x12,0xa8,0xc1,0x72,0x0b,0x68};
    static std::uint8_t c27[32] = {0xb3,0xdc,0xfe,0x3a,0x0d,0xb3,0x92,0x47,0x78,0x3a,0x74,0xe9,0x76,0x1c,0x9e,0xa4,0x36,0xe3,0x8e,0xbe,0x35,0x65,0x37,0x14,0x97,0xc8,0x21,0xb9,0x21,0xbd,0x58,0x32};
    sm9_fp_from_bytes(a, a27);
    sm9_fp_from_bytes(b, b27);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a28[32] = {0x12,0x76,0x75,0x3d,0xd3,0x14,0x34,0xbd,0x16,0x5a,0x82,0x42,0x12,0x45,0x54,0xcb,0x88,0x6d,0x7e,0x1f,0x4a,0x7c,0x55,0x24,0xb3,0x2c,0x0f,0x2d,0xb3,0x90,0x72,0x19};
    static std::uint8_t b28[32] = {0x1e,0xde,0xa7,0x95,0xce,0x86,0xb8,0xd1,0x1a,0xa0,0x65,0x32,0x79,0xea,0xe7,0xea,0x75,0xaa,0xde,0xb7,0x2f,0xb3,0xc4,0x32,0x4b,0xa7,0xcb,0xb2,0x55,0xfd,0x9e,0xc4};
    static std::uint8_t c28[32] = {0x98,0xc5,0x41,0xbd,0x19,0xc9,0x55,0x5a,0xa7,0xb6,0xaf,0xc7,0x5b,0x65,0x94,0x1c,0xac,0x3e,0xc3,0x1b,0x6a,0x95,0xef,0xd1,0x39,0x16,0x45,0x0f,0xfc,0xe3,0x02,0xbd};
    sm9_fp_from_bytes(a, a28);
    sm9_fp_from_bytes(b, b28);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a29[32] = {0x2d,0x01,0x46,0x2a,0x86,0x05,0x73,0xc9,0xcc,0xd2,0xc5,0xab,0x67,0xd7,0x41,0xba,0x67,0x34,0x1a,0x80,0x16,0xae,0xfe,0xea,0xd7,0x48,0xa0,0x23,0xd2,0xcf,0x91,0x4a};
    static std::uint8_t b29[32] = {0x54,0x42,0xe8,0x41,0xec,0xcf,0xd6,0x31,0x4d,0x81,0x71,0xb9,0x04,0xb7,0x69,0xe1,0x98,0x1a,0x9d,0x50,0xd1,0x72,0x2c,0x36,0x0c,0x43,0xec,0x72,0x2d,0x64,0x1d,0x06};
    static std::uint8_t c29[32] = {0x44,0xb5,0xb5,0x2f,0x66,0x7f,0xb3,0xeb,0x6d,0x8b,0xd9,0x8a,0xa1,0xd7,0xf7,0x30,0x5f,0x45,0xe9,0x8b,0x1c,0x15,0x1a,0x54,0x78,0x2d,0xa4,0xdd,0xc6,0x37,0xf0,0x74};
    sm9_fp_from_bytes(a, a29);
    sm9_fp_from_bytes(b, b29);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a30[32] = {0x42,0xb0,0x80,0x99,0x23,0x64,0xe0,0xe6,0xbe,0x24,0xc2,0x0e,0x27,0x74,0x7f,0x3c,0x83,0x4a,0x03,0x62,0xb4,0x85,0xe0,0x83,0x88,0xfe,0x16,0xf4,0x81,0xcf,0x77,0x7b};
    static std::uint8_t b30[32] = {0x40,0x1f,0x05,0x9b,0x65,0x8e,0x8f,0x29,0xed,0x53,0x38,0xa8,0x82,0x47,0x75,0x17,0x8b,0x33,0xc0,0x81,0x29,0xb3,0x99,0xf0,0xfd,0x10,0x24,0x75,0x36,0x77,0x5b,0xdc};
    static std::uint8_t c30[32] = {0x84,0x11,0xa3,0x39,0x10,0x5f,0x6b,0x5c,0x9e,0x81,0x3e,0x47,0xc0,0x69,0xb3,0xd6,0xb6,0x59,0x33,0x13,0x76,0x13,0x88,0xd9,0xe4,0x66,0x6d,0xde,0xfa,0x3d,0x9d,0x91};
    sm9_fp_from_bytes(a, a30);
    sm9_fp_from_bytes(b, b30);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a31[32] = {0x91,0xb1,0x25,0x87,0x19,0x8d,0xf0,0x11,0x7d,0x0d,0xea,0x75,0x1b,0x15,0x58,0x51,0xd9,0xb5,0xe7,0x8a,0x0e,0x2b,0x7f,0xde,0xdf,0x9a,0xbe,0xda,0x7d,0x82,0x8f,0xad};
    static std::uint8_t b31[32] = {0x2d,0x20,0x33,0x6b,0xfa,0x9b,0xef,0x9c,0xfd,0xdf,0x93,0x0e,0xd1,0xd8,0x82,0x0b,0x09,0x61,0x4e,0x07,0x22,0xa3,0x59,0x77,0xb2,0x62,0x6b,0x78,0xeb,0xbd,0x65,0x65};
    static std::uint8_t c31[32] = {0x41,0xb7,0x1f,0xdd,0x22,0xf2,0x8c,0x31,0x1b,0x7d,0x43,0xfd,0xf7,0xce,0xf4,0x42,0xa1,0xb4,0xa1,0x0d,0x79,0xde,0xef,0xcb,0xd6,0x6a,0x78,0x31,0xde,0x6b,0x84,0x5b};
    sm9_fp_from_bytes(a, a31);
    sm9_fp_from_bytes(b, b31);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a32[32] = {0x6b,0x43,0xab,0x6f,0xc0,0x78,0xcd,0xb7,0xe3,0xeb,0x48,0x63,0xaf,0x1e,0x88,0xd2,0xed,0x2d,0xc0,0x3f,0x30,0x63,0xce,0x27,0x15,0x19,0x59,0x24,0xe8,0x64,0xaf,0x0f};
    static std::uint8_t b32[32] = {0x42,0x46,0xe4,0xa8,0x7a,0x93,0xa6,0xcb,0xdf,0x9f,0x89,0xe8,0x7f,0x77,0xd0,0xed,0xed,0xec,0x84,0x9e,0x57,0x21,0xaa,0xf1,0x78,0x1c,0x48,0x63,0x5c,0xf8,0xe1,0x60};
    static std::uint8_t c32[32] = {0x58,0x38,0x49,0xb0,0x0d,0xa8,0xaf,0xee,0x20,0x76,0x8e,0x77,0x4b,0x9c,0x3c,0xe7,0xb5,0xc2,0xa7,0x81,0x0f,0xf6,0xa9,0x45,0x89,0x08,0x40,0x48,0x93,0xd5,0xce,0xdd};
    sm9_fp_from_bytes(a, a32);
    sm9_fp_from_bytes(b, b32);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a33[32] = {0x23,0xfb,0x47,0xe5,0x67,0x26,0x62,0x43,0x33,0x14,0x97,0x83,0xc9,0x14,0xb8,0xb3,0x13,0x24,0x50,0xe8,0xf1,0xe5,0x1c,0xcb,0x45,0x6a,0xc3,0x70,0xa6,0x1b,0xdf,0x02};
    static std::uint8_t b33[32] = {0x4b,0xce,0x5d,0x59,0xba,0xd5,0xa1,0xc0,0x71,0x68,0xb6,0x6a,0xec,0x77,0x7a,0x21,0xc3,0xc6,0x7c,0x54,0xd3,0x6c,0xca,0x46,0x89,0x7d,0x51,0xee,0x1f,0x8b,0x92,0xe3};
    static std::uint8_t c33[32] = {0x7a,0xad,0xc3,0x65,0xf8,0x28,0x01,0x11,0x18,0xfe,0x05,0xa4,0xeb,0x9a,0x71,0x68,0x31,0xec,0x64,0xa2,0x4c,0xf2,0xc3,0xfc,0x14,0xb3,0x47,0xa0,0x06,0x2d,0xd8,0x30};
    sm9_fp_from_bytes(a, a33);
    sm9_fp_from_bytes(b, b33);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a34[32] = {0x55,0x59,0x7a,0xc6,0x24,0xd8,0x44,0x57,0x62,0x50,0xe4,0xf4,0x8a,0xb3,0x17,0x18,0x71,0xd6,0x5e,0xd4,0xb7,0x7b,0xe6,0x69,0xe7,0xbe,0x39,0x1e,0x9f,0x56,0x02,0x26};
    static std::uint8_t b34[32] = {0x04,0x26,0x16,0x6a,0xde,0x93,0x6d,0x81,0x91,0x33,0xdd,0x41,0xd8,0x0d,0x91,0xa6,0x9e,0xf2,0xcf,0x17,0x86,0x4e,0x02,0xa4,0x82,0x24,0x67,0xab,0xf5,0xf6,0x36,0xaa};
    static std::uint8_t c34[32] = {0x49,0x5d,0x22,0xb8,0xab,0x90,0xba,0xcb,0x21,0xcc,0x60,0x89,0xd8,0x24,0x99,0x3c,0x15,0x5e,0xb1,0x14,0x82,0x5e,0xbe,0xf1,0x9b,0x86,0xc4,0xa6,0x32,0xe7,0xc4,0xfd};
    sm9_fp_from_bytes(a, a34);
    sm9_fp_from_bytes(b, b34);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a35[32] = {0x13,0xb0,0xc3,0x0c,0x4b,0x66,0x72,0xd4,0x27,0xdd,0xa5,0xfd,0x2c,0x23,0xf0,0x7e,0xff,0xad,0xcd,0xa9,0x93,0x2f,0x35,0xfc,0xbb,0xb2,0xe6,0x81,0x75,0x2e,0xe0,0xcc};
    static std::uint8_t b35[32] = {0xb4,0x52,0x6a,0xf4,0xdf,0x97,0xa8,0x41,0x7c,0xd5,0xbc,0x97,0xe3,0x52,0x63,0xd6,0x12,0x32,0x26,0xe0,0xf6,0xc3,0xb0,0x76,0xa3,0x7f,0x28,0xa2,0x46,0x30,0x01,0x69};
    static std::uint8_t c35[32] = {0x31,0x6d,0x35,0xbb,0xd5,0x6b,0x28,0x99,0x7d,0xac,0x41,0x37,0xcd,0x52,0xd3,0xf4,0x0f,0xb1,0x7f,0x08,0x96,0x69,0xa6,0x05,0x6e,0x66,0x9c,0xd7,0x47,0x2e,0x16,0xf5};
    sm9_fp_from_bytes(a, a35);
    sm9_fp_from_bytes(b, b35);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a36[32] = {0x42,0x03,0x1d,0x65,0xc7,0xd1,0x75,0xd2,0x31,0x86,0xeb,0x26,0x87,0x4d,0x53,0xc5,0x0b,0x97,0x29,0x06,0x0b,0x4b,0x86,0x72,0x3e,0xb2,0xe0,0x45,0xed,0xb4,0xef,0x43};
    static std::uint8_t b36[32] = {0x29,0xb3,0xe3,0xe0,0x98,0xa9,0xef,0xea,0x09,0x26,0x5c,0xd2,0x59,0x2c,0x98,0xe2,0xfa,0x54,0xb2,0x57,0x85,0xc3,0xce,0x4f,0x1c,0x11,0x9c,0xf0,0x76,0x50,0x74,0x4b};
    static std::uint8_t c36[32] = {0x39,0xaf,0x8e,0xf0,0xd6,0xe3,0xb0,0xa3,0xda,0xda,0xba,0x5e,0x76,0x8b,0x07,0xbe,0x8b,0x3e,0xb9,0xd8,0x4d,0x3f,0x9d,0x7d,0x20,0x84,0x10,0x31,0x3f,0xc2,0x26,0x1f};
    sm9_fp_from_bytes(a, a36);
    sm9_fp_from_bytes(b, b36);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a37[32] = {0x2a,0xf9,0x91,0x43,0x8a,0x1d,0x7a,0x7d,0x41,0x5e,0x1a,0xcc,0x4f,0xcc,0x07,0xde,0xe0,0x9b,0x91,0xc3,0x25,0xa6,0xc0,0xcc,0x9c,0xd5,0x0f,0xc2,0x7e,0x0c,0xcd,0x9c};
    static std::uint8_t b37[32] = {0x95,0xa9,0x6c,0xaa,0x15,0xcd,0xca,0x23,0x4f,0xc2,0xe9,0x8d,0x97,0xc6,0xab,0x67,0x0d,0x68,0xd1,0x95,0x8e,0x70,0xe5,0x9c,0xa3,0xff,0xe5,0x4f,0x0c,0xf1,0xf7,0x84};
    static std::uint8_t c37[32] = {0x8b,0xcd,0x40,0xd5,0x80,0xe3,0x0f,0xb1,0xb0,0x45,0x1f,0x25,0xae,0xa8,0x2b,0x82,0x05,0x8a,0x7f,0x46,0x8b,0x65,0x55,0x38,0x07,0x11,0x5b,0x79,0xe2,0x0b,0x67,0x04};
    sm9_fp_from_bytes(a, a37);
    sm9_fp_from_bytes(b, b37);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a38[32] = {0x6a,0x47,0xf5,0x77,0xc9,0x6e,0xfc,0x08,0x28,0x1d,0xae,0x6a,0xec,0xe9,0xf5,0x46,0x99,0xd1,0x88,0xae,0x4e,0xb0,0xca,0x3f,0x33,0x4e,0xbe,0x18,0x7e,0x8f,0x7a,0xfd};
    static std::uint8_t b38[32] = {0x08,0x78,0x73,0x3b,0x1f,0xa7,0xab,0xca,0xf6,0x2c,0xe8,0xb6,0x3e,0x13,0x10,0xeb,0xa4,0x62,0x94,0xa2,0x11,0x8d,0x74,0xe9,0x33,0x5d,0x10,0x05,0x30,0x63,0x03,0x9e};
    static std::uint8_t c38[32] = {0x47,0x33,0x98,0x57,0xcf,0x4e,0x98,0x14,0x17,0x08,0x02,0xeb,0x21,0x83,0x55,0x14,0x3b,0x6d,0xe4,0x16,0xf9,0xe5,0x7e,0xcb,0x46,0x7b,0x8b,0x42,0x54,0xc4,0x14,0xfe};
    sm9_fp_from_bytes(a, a38);
    sm9_fp_from_bytes(b, b38);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a39[32] = {0x38,0xd6,0x64,0xe8,0x99,0xa7,0xa2,0xc2,0xea,0xfe,0x8b,0xea,0x4a,0xf6,0x3f,0x17,0x76,0xb7,0xd8,0x02,0xb2,0xcf,0x0f,0xcf,0x07,0xcf,0xa4,0xb2,0x04,0x4f,0x08,0x87};
    static std::uint8_t b39[32] = {0x20,0x18,0xb0,0x09,0xdd,0x34,0xf4,0x03,0x03,0x32,0xb6,0x12,0x46,0xca,0x26,0x8a,0xd9,0xc1,0xe6,0xfa,0x8d,0x83,0x33,0x57,0x92,0xe9,0x88,0x3a,0x4e,0x56,0x2b,0x92};
    static std::uint8_t c39[32] = {0x5c,0x23,0x42,0x01,0xce,0x6d,0x89,0x41,0xe2,0x33,0xc0,0x52,0xe6,0x0f,0x4c,0x4b,0xad,0x6e,0xc7,0x1d,0xd6,0xc0,0xed,0x51,0xed,0x93,0x7c,0xf9,0x04,0x8a,0x31,0x7e};
    sm9_fp_from_bytes(a, a39);
    sm9_fp_from_bytes(b, b39);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a40[32] = {0x89,0x1a,0x11,0x14,0x3a,0x2d,0x3f,0x1f,0x62,0x62,0x91,0x35,0xb9,0x83,0x40,0x42,0xa1,0xef,0x41,0x4c,0xf6,0x4f,0x1f,0x23,0x25,0xe8,0xae,0xe6,0x33,0x81,0x36,0xc9};
    static std::uint8_t b40[32] = {0x51,0xec,0x0b,0x4f,0xea,0x70,0x65,0x89,0x5e,0x0e,0x38,0x1c,0x17,0x00,0xc8,0xf0,0xe0,0x5c,0x52,0x2c,0xd6,0xd7,0x62,0xa1,0x47,0x30,0x14,0x01,0xd4,0x71,0xcf,0x5c};
    static std::uint8_t c40[32] = {0x0a,0x2f,0x59,0xee,0xf6,0xd1,0x64,0xde,0x54,0xd8,0xe9,0x88,0x8c,0x04,0x41,0x06,0x07,0xf9,0xf7,0xa5,0x73,0x67,0xc1,0x5e,0xb7,0x00,0xfc,0x57,0x57,0x85,0x26,0x9b};
    sm9_fp_from_bytes(a, a40);
    sm9_fp_from_bytes(b, b40);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a41[32] = {0x05,0xf0,0xc5,0xf8,0xb6,0x6b,0x64,0xb3,0x22,0x8b,0xc4,0xeb,0x68,0x40,0x11,0x73,0x20,0x9a,0x6e,0xc0,0x46,0x09,0x90,0x91,0x26,0x15,0x3d,0x1f,0x68,0x03,0x3a,0x84};
    static std::uint8_t b41[32] = {0x47,0x22,0x9d,0xa8,0x28,0x6a,0xa4,0x8a,0x3a,0x1e,0x52,0x74,0x58,0x94,0xef,0x39,0x54,0xe3,0xb1,0xb4,0xa2,0x17,0xac,0xf9,0x87,0x6e,0xe4,0x30,0x64,0xbd,0x5e,0x63};
    static std::uint8_t c41[32] = {0x9d,0xae,0xf4,0x02,0x52,0xa9,0x6d,0x6b,0xd6,0xbc,0xd1,0x16,0xcc,0xf0,0xa9,0xf1,0x00,0x80,0x49,0x56,0x54,0x54,0x75,0xc2,0x52,0x2c,0x7f,0xd8,0x89,0xd7,0x1f,0x7c};
    sm9_fp_from_bytes(a, a41);
    sm9_fp_from_bytes(b, b41);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a42[32] = {0x37,0x28,0xcb,0xf5,0xde,0xd4,0xad,0xd7,0xd2,0xd8,0x80,0x6d,0xc2,0x94,0xf9,0x43,0x96,0x38,0x4f,0x1b,0x93,0xca,0x9e,0xa8,0xdf,0xb9,0xe1,0xbd,0xbb,0x99,0x13,0x9f};
    static std::uint8_t b42[32] = {0x6a,0x83,0x51,0x66,0xcb,0x62,0x08,0x44,0xf2,0x06,0xec,0xa7,0xb5,0x2c,0x25,0x1f,0xe4,0xfd,0xe3,0xf4,0x7f,0x2c,0xcc,0xf6,0x5c,0xf9,0x48,0x8e,0x83,0x3f,0xff,0x1b};
    static std::uint8_t c42[32] = {0x03,0x01,0x23,0xc7,0x5a,0xa2,0xed,0xe4,0x8b,0xc1,0xbb,0x47,0x5e,0x64,0x83,0x54,0x4e,0xc7,0x5c,0xc5,0xc8,0x4a,0xf9,0xf9,0x95,0x03,0xbe,0xfd,0x99,0x17,0x15,0xbe};
    sm9_fp_from_bytes(a, a42);
    sm9_fp_from_bytes(b, b42);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a43[32] = {0x14,0xaf,0x9c,0x9c,0x15,0x0d,0x88,0xef,0x41,0x32,0xe9,0x27,0x43,0xc8,0xcb,0x5a,0xb2,0x39,0xd1,0x08,0xdb,0xd9,0x6f,0x00,0xa2,0x7c,0x81,0x36,0x65,0x05,0x5c,0xe3};
    static std::uint8_t b43[32] = {0x30,0x85,0x80,0xed,0x8b,0xf4,0x1a,0xfc,0x58,0x9a,0xb0,0xda,0xf9,0xc5,0x94,0xad,0x81,0x50,0xcf,0x70,0xf3,0x4c,0x1e,0x3e,0xe3,0x72,0x9a,0x34,0x75,0x34,0xd7,0xfd};
    static std::uint8_t c43[32] = {0x57,0x2d,0x82,0x6a,0x36,0xd6,0x54,0x7e,0x4a,0x4c,0x6e,0x0a,0x4e,0x53,0xff,0xeb,0x5b,0xad,0xed,0xc7,0x40,0x2a,0xf6,0x21,0xbc,0x82,0xde,0x8d,0xbd,0x45,0xbd,0x88};
    sm9_fp_from_bytes(a, a43);
    sm9_fp_from_bytes(b, b43);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a44[32] = {0xae,0x63,0x42,0xec,0x09,0xf7,0xc1,0x4b,0x50,0x14,0xb0,0xe4,0x49,0xe8,0xd4,0x28,0xad,0x8e,0x40,0x2f,0xc6,0xa3,0xe9,0x26,0xb5,0xcd,0xf8,0x1a,0x2d,0x8c,0xf4,0x97};
    static std::uint8_t b44[32] = {0x30,0xd7,0xba,0x7a,0xac,0xd7,0xd6,0x57,0x62,0x68,0x2e,0x14,0xf8,0x21,0x4d,0xb9,0x27,0x36,0x2e,0xaa,0xf6,0xd8,0x22,0x4c,0x3c,0x32,0x37,0x48,0x5a,0x01,0xe4,0x61};
    static std::uint8_t c44[32] = {0xad,0x8b,0x83,0xc5,0x12,0x97,0xbd,0x7f,0xfa,0x60,0xf2,0x07,0xf7,0x4d,0xde,0x69,0x71,0xdb,0x1e,0x53,0x8f,0x5b,0xc3,0x52,0xd0,0x7a,0xa0,0xf0,0x37,0xd7,0xe8,0x7c};
    sm9_fp_from_bytes(a, a44);
    sm9_fp_from_bytes(b, b44);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a45[32] = {0xad,0xcf,0x56,0x49,0xa2,0x49,0x2c,0x26,0xcc,0x61,0x4a,0x5d,0x72,0xff,0xfc,0xc1,0xb6,0x6b,0xa6,0x68,0x9a,0xc9,0xa9,0x21,0x55,0x4c,0x9f,0xe7,0x79,0x6c,0x03,0x27};
    static std::uint8_t b45[32] = {0x4d,0x42,0xe4,0x76,0x00,0xb9,0x1a,0xdd,0xde,0x36,0xf5,0x64,0x43,0x9b,0x77,0x7d,0x53,0x39,0x8e,0xce,0x7d,0x75,0x8e,0x3c,0x53,0x8e,0x7b,0xfd,0xac,0xac,0x4f,0x63};
    static std::uint8_t c45[32] = {0x64,0x35,0xa9,0xe9,0xeb,0xed,0xde,0x0d,0xa7,0x1c,0x3f,0xa6,0xd9,0x6d,0xc2,0xc8,0x03,0x59,0xa5,0xbb,0x4b,0x2d,0x49,0xfb,0x33,0xa8,0x44,0xc4,0x80,0xa4,0xdd,0x09};
    sm9_fp_from_bytes(a, a45);
    sm9_fp_from_bytes(b, b45);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a46[32] = {0x0f,0x2a,0x85,0x61,0x67,0x59,0x74,0x22,0xcc,0xbd,0x7b,0x1c,0x09,0x55,0x5a,0x74,0xf0,0xbb,0xc6,0x71,0x0d,0x1f,0x14,0x66,0xc7,0xe6,0xc2,0xb8,0x8f,0x9d,0x31,0x2c};
    static std::uint8_t b46[32] = {0x4f,0x82,0x14,0xe8,0xf9,0xe3,0xaa,0x49,0xba,0x68,0x61,0xd1,0x45,0xf3,0x17,0x94,0xf7,0xcf,0xd8,0x65,0x4b,0x6e,0xc7,0x97,0x0b,0xe3,0xe0,0x0e,0x8e,0xff,0xbf,0xd8};
    static std::uint8_t c46[32] = {0x96,0x22,0x41,0xdb,0x39,0x69,0xfc,0x43,0xf3,0xee,0xaf,0xaa,0x1d,0x4d,0x4e,0x70,0xee,0x39,0xba,0xc9,0xef,0x0c,0xa5,0xff,0xfe,0xc9,0xb0,0x5e,0x4f,0x62,0x00,0x27};
    sm9_fp_from_bytes(a, a46);
    sm9_fp_from_bytes(b, b46);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a47[32] = {0x21,0x2f,0x02,0xbf,0xbf,0x31,0x40,0xb8,0xf8,0xc6,0x0b,0x9c,0x6b,0x5b,0x70,0x26,0xb7,0xc3,0x63,0x27,0xd5,0x40,0x18,0x70,0x7f,0xd6,0x72,0xc2,0x84,0xd5,0x45,0x69};
    static std::uint8_t b47[32] = {0x8f,0x5d,0xfd,0x78,0x4f,0x5c,0x7d,0x95,0xd8,0x76,0x9e,0xec,0xb1,0x73,0xad,0xf3,0x12,0x8e,0x39,0x65,0xa5,0xa1,0x43,0x9e,0x5e,0xf1,0x88,0x92,0x0a,0x20,0xb4,0xe1};
    static std::uint8_t c47[32] = {0x92,0xd7,0x25,0xe0,0x54,0x1b,0xfa,0x77,0xfa,0xfe,0xaa,0x93,0x36,0x57,0xf1,0xb2,0x2d,0x41,0x17,0xb7,0xf3,0xd4,0xc6,0x1d,0xc9,0x0d,0x82,0x91,0xd6,0x9c,0x9c,0x9b};
    sm9_fp_from_bytes(a, a47);
    sm9_fp_from_bytes(b, b47);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a48[32] = {0x03,0xa9,0xe4,0xa9,0xde,0x2f,0xe9,0xca,0x00,0xab,0x98,0xa3,0x0c,0x41,0x45,0x86,0xaa,0xd3,0x4a,0xbf,0x44,0x20,0x9a,0xc1,0xf0,0xc4,0x7c,0x32,0x53,0x50,0x39,0xf9};
    static std::uint8_t b48[32] = {0x42,0x25,0x25,0x8f,0xf8,0x3c,0x5a,0x07,0x10,0xc2,0x4c,0x78,0xb2,0x11,0x42,0xfd,0x6a,0x5b,0x93,0xdf,0x02,0xa9,0x30,0xcd,0xaf,0xb8,0x0e,0x96,0x3a,0xcf,0x6a,0x9f};
    static std::uint8_t c48[32] = {0x6d,0xa9,0xde,0xec,0x48,0xdc,0xde,0x03,0x9c,0x70,0x18,0xb2,0x95,0xda,0xda,0x04,0xe5,0xfd,0xb7,0x69,0xb8,0xa5,0x61,0x4b,0xda,0xfb,0x49,0x63,0xe6,0xf1,0x72,0xd4};
    sm9_fp_from_bytes(a, a48);
    sm9_fp_from_bytes(b, b48);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a49[32] = {0x03,0x6c,0xcb,0xb5,0x1c,0xd5,0xd9,0xc9,0xcd,0x95,0xf4,0x91,0x65,0xea,0xb5,0x2d,0x94,0xc8,0xa1,0xae,0x1f,0xad,0xd8,0xcf,0xbd,0x32,0x80,0xd5,0x5e,0x72,0xe9,0x6b};
    static std::uint8_t b49[32] = {0x25,0x5a,0x02,0xa3,0x10,0x7a,0x55,0x41,0x2a,0x36,0x52,0x64,0x34,0xdd,0xb0,0x1b,0x23,0x9a,0x48,0x85,0xdc,0xb1,0x1a,0xb2,0xa7,0x0f,0x0e,0x8f,0x9e,0xde,0xf3,0x95};
    static std::uint8_t c49[32] = {0xad,0xbb,0xfa,0x02,0xda,0xfc,0x42,0x85,0x5e,0xea,0x22,0x15,0x17,0xe9,0xb5,0x16,0x4b,0xc8,0x86,0x97,0xe1,0x97,0xf5,0x27,0x3c,0xe4,0xb0,0x92,0xeb,0xa1,0x10,0xa8};
    sm9_fp_from_bytes(a, a49);
    sm9_fp_from_bytes(b, b49);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a50[32] = {0x23,0x58,0x90,0x4c,0x0f,0x6d,0x7c,0x93,0x8d,0xeb,0x74,0x44,0x21,0x81,0x27,0xff,0xbd,0x48,0x30,0x23,0xaa,0x2d,0xd1,0xf4,0x11,0x6c,0xe7,0x1f,0x93,0xae,0xa3,0xd6};
    static std::uint8_t b50[32] = {0x92,0x5b,0x93,0x6b,0xf0,0x83,0xaa,0x13,0xae,0x51,0x44,0xce,0x06,0x09,0x1d,0x11,0xa6,0x95,0x15,0xc2,0x19,0xe3,0xf6,0x44,0x16,0x62,0x74,0x54,0xd2,0x21,0x25,0x42};
    static std::uint8_t c50[32] = {0x3a,0xc4,0x43,0x34,0x34,0xd9,0xce,0x01,0xa1,0x59,0xe5,0x8c,0xda,0x40,0x2b,0xd4,0xef,0xc7,0x46,0x39,0x0c,0x09,0x62,0xc6,0xc8,0x1b,0xb8,0xd8,0xae,0x1e,0xc4,0xa5};
    sm9_fp_from_bytes(a, a50);
    sm9_fp_from_bytes(b, b50);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a51[32] = {0x4d,0x1f,0xa3,0x4e,0x38,0x64,0xf2,0x90,0x7d,0x1a,0x4e,0x28,0xfc,0xc0,0xeb,0x3b,0x06,0xbb,0x69,0xc3,0x24,0x85,0x41,0x02,0xd6,0x58,0x10,0x7c,0x99,0xdb,0x97,0x37};
    static std::uint8_t b51[32] = {0x8e,0x14,0x75,0x57,0xd7,0x1f,0x8c,0x2e,0x46,0x75,0x08,0xf2,0x52,0x34,0x9a,0x47,0xe9,0xa3,0xfd,0x0b,0x31,0x50,0xe1,0x79,0x29,0xeb,0x2d,0x2c,0x2e,0x21,0x81,0x63};
    static std::uint8_t c51[32] = {0x9f,0x05,0xf5,0x51,0x4f,0xd0,0x1c,0x1c,0x10,0xb9,0xca,0x6c,0xde,0x2b,0xc7,0xf1,0xaa,0xdf,0xdf,0x05,0xe8,0x0f,0x60,0x6f,0xf5,0x91,0xff,0x2b,0x3f,0x7a,0xc8,0x63};
    sm9_fp_from_bytes(a, a51);
    sm9_fp_from_bytes(b, b51);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a52[32] = {0x1a,0x01,0x4a,0xd3,0xb4,0x4b,0xb4,0x2d,0x75,0xd9,0xa0,0xc8,0xa7,0xb6,0x93,0xff,0xd1,0xa0,0xba,0x70,0x06,0xc8,0xd7,0x95,0xda,0x05,0x76,0x73,0x8c,0x88,0x97,0x8e};
    static std::uint8_t b52[32] = {0x13,0x39,0x2b,0xe8,0x89,0x00,0xce,0xfe,0xbb,0x48,0xe8,0x2e,0xde,0x2e,0x65,0xf2,0x49,0xe1,0x82,0x13,0x46,0x6b,0x65,0x40,0x30,0x4b,0xe4,0xdd,0xbf,0xd4,0x39,0xf0};
    static std::uint8_t c52[32] = {0x7f,0x85,0xe6,0xa5,0xd5,0xc1,0xa7,0x60,0xaa,0x7c,0x20,0xf7,0xd8,0x2d,0x32,0x9a,0x5c,0x7a,0x10,0x56,0x59,0x5b,0xbe,0x80,0x3e,0x6f,0xa2,0x62,0xeb,0x6e,0xd3,0x5d};
    sm9_fp_from_bytes(a, a52);
    sm9_fp_from_bytes(b, b52);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a53[32] = {0x7e,0xdc,0x9b,0x99,0x76,0xfd,0xe3,0x97,0xf2,0x36,0x60,0x01,0x03,0x6f,0x99,0x60,0x96,0xa1,0x6d,0xf1,0xa1,0x6e,0xd5,0x37,0x20,0xc4,0xa6,0xde,0x05,0x7d,0xd3,0xb0};
    static std::uint8_t b53[32] = {0x3a,0x78,0x94,0x46,0x3f,0xfd,0x2d,0x07,0x00,0xee,0x39,0x97,0xf2,0x89,0x28,0x0c,0x6c,0x0b,0x22,0xa6,0xe7,0xfb,0x5d,0xb0,0x80,0x40,0x10,0xa3,0x46,0x5e,0xf8,0x4a};
    static std::uint8_t c53[32] = {0xa0,0xd6,0x3a,0xd4,0xbf,0x13,0x5e,0x3d,0x9b,0xcb,0x03,0xc6,0x7d,0x7a,0x1f,0xc1,0x4e,0xc0,0x86,0xc7,0xd4,0x01,0x86,0xa0,0x19,0x22,0xd8,0xa0,0x36,0x7e,0x0c,0xff};
    sm9_fp_from_bytes(a, a53);
    sm9_fp_from_bytes(b, b53);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a54[32] = {0x70,0x24,0x9b,0x4e,0x29,0xaf,0x46,0xe2,0xa0,0x6b,0xde,0x67,0x0b,0x04,0xd6,0xe6,0x52,0xf7,0x12,0xab,0x4a,0xa8,0x5d,0x6f,0xe5,0x19,0x3d,0x08,0x40,0x82,0x12,0x05};
    static std::uint8_t b54[32] = {0x14,0x82,0x77,0x45,0x61,0x7d,0xf6,0x76,0x7d,0x95,0x64,0x0f,0x9a,0x3e,0xbd,0x9e,0x2a,0x02,0x44,0x8b,0xc4,0x27,0xdc,0x6a,0x75,0xce,0xfe,0xf7,0x25,0x54,0x91,0x33};
    static std::uint8_t c54[32] = {0x04,0xf1,0xcc,0xec,0x00,0x93,0x11,0x5b,0x10,0xbf,0x8f,0xd0,0x3f,0x9b,0x79,0xf2,0xe6,0x32,0x38,0x1a,0x22,0xec,0x25,0xed,0x94,0xe7,0xf6,0x19,0x32,0xa6,0x85,0x30};
    sm9_fp_from_bytes(a, a54);
    sm9_fp_from_bytes(b, b54);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a55[32] = {0x12,0xa7,0x2c,0xe5,0x47,0xac,0x2b,0x08,0x02,0xe4,0x29,0x39,0xb5,0xa5,0x88,0xe1,0x64,0x38,0x46,0xb3,0x44,0xec,0xda,0x31,0x2c,0x97,0x35,0xc9,0x8e,0xa8,0x2c,0xd6};
    static std::uint8_t b55[32] = {0x33,0x02,0x8c,0x2c,0x56,0x14,0xa7,0x2c,0x1d,0xe1,0xe3,0xe9,0x76,0xa8,0x38,0x39,0x22,0x43,0xa5,0xde,0x24,0x8c,0x36,0x21,0x0a,0x21,0xd7,0x52,0x1d,0xec,0x3c,0x4f};
    static std::uint8_t c55[32] = {0x70,0x0a,0x10,0xd0,0x93,0xb8,0x2d,0x45,0xbd,0x3b,0x36,0x91,0xb7,0x50,0xa1,0xec,0x42,0x94,0x9a,0x1a,0x09,0x10,0xa5,0xa8,0x2e,0xbd,0x16,0x47,0xa5,0x76,0x17,0xc1};
    sm9_fp_from_bytes(a, a55);
    sm9_fp_from_bytes(b, b55);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a56[32] = {0x49,0x69,0xa0,0xb2,0x38,0x86,0x18,0xeb,0x01,0xb8,0x79,0x1a,0x4e,0xa6,0xc8,0x68,0xc3,0x92,0xcd,0x85,0x89,0xf2,0x49,0xd8,0x02,0xe2,0x66,0x4c,0xc9,0x38,0xca,0x2f};
    static std::uint8_t b56[32] = {0xb5,0x80,0xd7,0x0d,0xb1,0xaa,0x87,0x7b,0xc3,0xef,0xa1,0x72,0xe0,0x7c,0x7e,0x6a,0x4b,0x84,0x3c,0xbc,0x4b,0x55,0xd5,0x43,0xdc,0x01,0x2e,0x00,0x9c,0x45,0x52,0x19};
    static std::uint8_t c56[32] = {0x24,0x77,0x76,0xac,0x7f,0x21,0x69,0x96,0x08,0x11,0xf6,0x33,0x58,0x5b,0xe9,0xe3,0xeb,0x1c,0x79,0x63,0xa9,0x50,0xe7,0xa3,0x12,0x1b,0xa2,0x1a,0xae,0xdf,0xc8,0x38};
    sm9_fp_from_bytes(a, a56);
    sm9_fp_from_bytes(b, b56);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a57[32] = {0x86,0xad,0xc5,0xeb,0x10,0xf5,0x58,0xee,0xb6,0x19,0x12,0x9c,0x30,0x55,0x57,0x87,0xc4,0xee,0x87,0xfa,0xc5,0x3d,0x5b,0x78,0xe6,0x3b,0x5f,0x0a,0xb3,0xad,0x4f,0xf6};
    static std::uint8_t b57[32] = {0x8c,0x8a,0x8b,0xa3,0xc0,0xb2,0xa8,0xba,0xc2,0x7c,0x03,0x6e,0x4e,0x9a,0xf5,0xa1,0x54,0x04,0xd1,0x1f,0x96,0x84,0xde,0xcf,0x16,0x9c,0xb1,0x99,0xa7,0x2a,0xc8,0x11};
    static std::uint8_t c57[32] = {0x49,0x77,0xe0,0x2d,0x2c,0x8a,0x97,0x1d,0x9f,0x04,0x76,0x84,0xe0,0xdf,0x3b,0xbc,0x3f,0x4c,0xe5,0x7e,0x74,0x33,0xce,0x4a,0xb0,0x91,0x95,0xeb,0x36,0x96,0xb2,0xda};
    sm9_fp_from_bytes(a, a57);
    sm9_fp_from_bytes(b, b57);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a58[32] = {0x84,0x14,0x5f,0xb1,0xf1,0xa9,0x60,0x1a,0xee,0x98,0x82,0xf8,0xd5,0x41,0xe1,0x97,0x1b,0x19,0xe9,0x53,0xb3,0x81,0xf7,0x13,0x53,0x43,0x57,0xc1,0x63,0x4d,0x42,0x24};
    static std::uint8_t b58[32] = {0x97,0x82,0x4d,0xd2,0x53,0xb9,0x95,0xc1,0xc3,0xa0,0x1a,0x89,0xf0,0x41,0xc3,0xac,0xa3,0x3f,0xb0,0x84,0xb2,0x0e,0x00,0xe3,0x03,0xd5,0x05,0xa3,0xfa,0xea,0xba,0x2e};
    static std::uint8_t c58[32] = {0x40,0x92,0x76,0x84,0x8b,0xf2,0x18,0x99,0x6c,0x17,0x02,0x5a,0x2c,0x6e,0x9a,0x31,0x57,0x26,0xe8,0xc9,0x71,0x89,0x27,0xf2,0x84,0xa2,0xc4,0x64,0x3e,0x31,0x7d,0x44};
    sm9_fp_from_bytes(a, a58);
    sm9_fp_from_bytes(b, b58);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a59[32] = {0x98,0x67,0x75,0x60,0x60,0xc9,0x0e,0xff,0x77,0x34,0x60,0x80,0x11,0xd0,0x77,0x0d,0xc4,0x9c,0x39,0xaf,0xbe,0x0b,0x5c,0x2b,0xaa,0x18,0xd3,0xf4,0xa1,0xfe,0x8b,0x7a};
    static std::uint8_t b59[32] = {0x51,0x0d,0x38,0x2f,0x33,0x3b,0xed,0x01,0xe3,0xc7,0xb4,0x05,0xf5,0x77,0x94,0xa1,0x88,0xbb,0x98,0x05,0x1f,0x19,0x71,0x85,0xa0,0x18,0x2e,0x7c,0x76,0x00,0x2e,0x6a};
    static std::uint8_t c59[32] = {0x74,0xf1,0x85,0x3a,0xf1,0x46,0xea,0x92,0xe2,0x87,0x7e,0x7b,0x61,0x5c,0x7a,0xe9,0x55,0x67,0xb6,0x69,0x7d,0x30,0x66,0xd8,0x38,0xd4,0x4e,0xd7,0x1e,0x6b,0x79,0xd9};
    sm9_fp_from_bytes(a, a59);
    sm9_fp_from_bytes(b, b59);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a60[32] = {0x28,0x2a,0x9b,0x33,0xa6,0x39,0xa8,0x66,0x0b,0x9c,0x08,0xd8,0x33,0xea,0xfa,0xf0,0x66,0x9c,0xd8,0x52,0x31,0x88,0x5e,0xf9,0x68,0x3c,0x3f,0x1f,0x13,0xc0,0xf8,0x3e};
    static std::uint8_t b60[32] = {0x27,0x47,0x68,0x69,0xcd,0xe5,0x9c,0x24,0x90,0x68,0xe6,0x43,0xc1,0x64,0xb5,0x67,0xca,0x20,0xc6,0x9a,0x07,0xe2,0x38,0x3a,0xde,0x96,0x86,0xe1,0xa8,0x50,0x9a,0x9f};
    static std::uint8_t c60[32] = {0x77,0xad,0x64,0x36,0x49,0x1e,0x93,0xe9,0x5d,0xbe,0xd8,0xf4,0x98,0x5a,0x47,0x4f,0x3d,0x6e,0x2a,0x83,0x30,0x48,0x91,0xfc,0xda,0x3a,0xf2,0x95,0x82,0x27,0x98,0xa6};
    sm9_fp_from_bytes(a, a60);
    sm9_fp_from_bytes(b, b60);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a61[32] = {0x16,0xaa,0xb9,0x8c,0x5e,0xb6,0x88,0x7c,0x7d,0x14,0xe2,0xfa,0x77,0x8c,0x8d,0x32,0x1b,0xde,0x92,0xaa,0x5a,0x04,0x31,0x74,0x65,0xdc,0xdc,0x26,0x2d,0xaa,0xc5,0x5c};
    static std::uint8_t b61[32] = {0x91,0x67,0x3e,0xa0,0xb6,0x38,0x72,0xfc,0x01,0x2e,0xb3,0xe5,0x35,0x0b,0x31,0xb6,0x50,0x03,0xe1,0x15,0x0a,0x44,0x00,0x1d,0xc3,0x53,0x37,0xa5,0x06,0x4a,0x1d,0x43};
    static std::uint8_t c61[32] = {0x5f,0xf8,0x23,0x59,0x3c,0xa4,0x83,0x7a,0x94,0xd9,0x32,0xda,0xd4,0x55,0x11,0x02,0xee,0x21,0x36,0x80,0x75,0x06,0xc3,0x5d,0xba,0xac,0x68,0xc4,0x53,0x72,0x06,0x79};
    sm9_fp_from_bytes(a, a61);
    sm9_fp_from_bytes(b, b61);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a62[32] = {0x21,0x64,0xce,0x29,0x01,0x63,0x66,0x1f,0x02,0xa5,0xf0,0x70,0x34,0xa4,0x5c,0x35,0xcb,0xc8,0xed,0x93,0x87,0xf5,0x32,0xc6,0x23,0x3a,0x85,0xe7,0x51,0x93,0x0c,0x0e};
    static std::uint8_t b62[32] = {0x17,0x40,0xad,0xbe,0xba,0x3b,0xfe,0xab,0x06,0x21,0x98,0x7a,0x9a,0xd4,0x15,0x07,0x0c,0x36,0xf4,0xcb,0x0d,0xb2,0x41,0x1e,0xcb,0xc3,0xe0,0x5c,0x8f,0x51,0x5d,0xad};
    static std::uint8_t c62[32] = {0x82,0xfa,0x57,0x00,0x63,0xf9,0xdb,0x40,0x89,0x87,0xff,0xbf,0xbe,0x69,0x0f,0x4b,0xc0,0xb6,0x00,0x64,0x5a,0xa3,0x0b,0x13,0x86,0xe1,0x59,0x5c,0xeb,0xf7,0x0c,0x69};
    sm9_fp_from_bytes(a, a62);
    sm9_fp_from_bytes(b, b62);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a63[32] = {0x4a,0x8c,0x91,0x45,0x13,0xd6,0xa3,0xbb,0x3e,0xfc,0x8b,0x24,0x9c,0x25,0x94,0x96,0x6b,0x48,0x95,0x2d,0x58,0x1c,0x67,0x61,0xed,0x76,0x6a,0xd0,0x75,0x96,0xfc,0x09};
    static std::uint8_t b63[32] = {0x48,0x61,0x2c,0xef,0xe0,0xdd,0xc1,0xfe,0xd8,0xea,0x1f,0xec,0xb7,0xd2,0x7f,0x21,0xad,0xa0,0x42,0x18,0x4d,0x36,0x08,0xc4,0x41,0x9b,0x6f,0x48,0x50,0x04,0x9e,0x43};
    static std::uint8_t c63[32] = {0x45,0x10,0x6d,0xbe,0xad,0xa3,0xdc,0x97,0x41,0x03,0x83,0x01,0xc0,0x8b,0x8e,0x06,0xd9,0x9a,0xfb,0x60,0x34,0x43,0x03,0x22,0xb2,0xcf,0xf2,0x27,0x8b,0x2e,0x07,0x2d};
    sm9_fp_from_bytes(a, a63);
    sm9_fp_from_bytes(b, b63);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a64[32] = {0x88,0xcb,0xd7,0x1c,0x30,0xc8,0x93,0x5e,0x5f,0x37,0xe1,0x0b,0xc5,0x3e,0x9b,0x85,0xe5,0x55,0xa7,0xbd,0xa5,0xc2,0x8b,0x5f,0xba,0x4c,0xea,0xcf,0x08,0xb1,0x9d,0x69};
    static std::uint8_t b64[32] = {0x4e,0x3e,0x08,0x8d,0x16,0x39,0xba,0x5b,0x03,0xca,0x9c,0x67,0x20,0xab,0x43,0xd9,0xb5,0xac,0x7a,0x9a,0xf5,0xc4,0x07,0x4b,0xd5,0xaa,0x0c,0x1e,0x67,0xd5,0xa8,0x0d};
    static std::uint8_t c64[32] = {0x5a,0x65,0xbb,0x0c,0x85,0x7a,0xf2,0xd1,0x65,0x7c,0x0e,0xba,0xa8,0xbf,0x70,0x01,0x9a,0x09,0x83,0x0a,0xba,0x79,0x10,0x35,0x0d,0x81,0x34,0x13,0xa9,0x0b,0x8e,0x0a};
    sm9_fp_from_bytes(a, a64);
    sm9_fp_from_bytes(b, b64);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a65[32] = {0x26,0xde,0x6e,0xc4,0x1c,0x11,0x3b,0xf5,0x49,0x41,0x91,0x8f,0xc6,0x32,0xb6,0x59,0xe2,0xc8,0x08,0x6c,0x2b,0xb6,0x3f,0xae,0x51,0xa1,0x4d,0x3a,0xb8,0x2f,0x27,0x72};
    static std::uint8_t b65[32] = {0x88,0x7c,0xb1,0xf7,0xbd,0x9a,0xbc,0x2d,0xca,0x80,0x67,0x52,0xee,0x99,0x39,0x53,0x49,0xe6,0x99,0x6a,0x72,0x92,0xef,0x1b,0xb1,0xdc,0x59,0xd7,0x81,0x66,0x08,0xd6};
    static std::uint8_t c65[32] = {0x4c,0xc1,0x7a,0xe0,0x0b,0x0b,0x2d,0x37,0x35,0x07,0x36,0x40,0x4b,0x21,0x39,0x05,0x46,0x9e,0x48,0xc3,0x8f,0x30,0xa9,0x9e,0x47,0x4e,0x10,0x95,0x4e,0x9d,0xc5,0x20};
    sm9_fp_from_bytes(a, a65);
    sm9_fp_from_bytes(b, b65);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a66[32] = {0x87,0x9d,0x39,0x5c,0xf6,0x3d,0xb9,0xff,0xf9,0x7c,0x2f,0x3c,0x1c,0xe2,0xbf,0x26,0x31,0xad,0x45,0x4a,0x13,0xbd,0xe0,0xe5,0x2d,0x21,0x1c,0x11,0x3a,0xce,0x4a,0x31};
    static std::uint8_t b66[32] = {0x11,0x60,0x52,0x07,0x58,0x61,0xa8,0x66,0x3d,0x5b,0x01,0x64,0xa0,0xbf,0x63,0xf7,0x70,0xdd,0x12,0x21,0x69,0xd5,0xa1,0x02,0x87,0xa3,0xc2,0xca,0x0a,0x9f,0x48,0x99};
    static std::uint8_t c66[32] = {0x11,0xb6,0xc4,0xe4,0xc1,0xf2,0x5a,0xc6,0x28,0x12,0x1e,0xa5,0xf1,0xd9,0x86,0x65,0xff,0xc5,0xac,0x24,0xb9,0xc1,0x61,0xc2,0x65,0xf0,0x7d,0x70,0x42,0x8c,0xe3,0x5f};
    sm9_fp_from_bytes(a, a66);
    sm9_fp_from_bytes(b, b66);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a67[32] = {0x66,0xc0,0x3b,0x03,0x2c,0xa8,0x44,0xdd,0x31,0x4b,0x81,0x59,0x82,0xd7,0xb9,0xd2,0xe5,0x51,0xac,0x00,0x3f,0x26,0x4b,0xc1,0xc5,0xa3,0x50,0xb4,0x60,0x0c,0x2e,0x9c};
    static std::uint8_t b67[32] = {0xb2,0x33,0x9c,0xab,0x4a,0xa7,0x0f,0x3f,0x74,0xdd,0x77,0xe8,0x02,0x1e,0x84,0x15,0xee,0xf0,0x66,0xaf,0x26,0xfc,0x18,0x9d,0x2e,0x65,0x5c,0x9a,0x04,0xaa,0x75,0xce};
    static std::uint8_t c67[32] = {0x58,0xaf,0xc6,0x36,0x3a,0x68,0xb4,0x01,0xe4,0x68,0x1a,0x3b,0x96,0x3a,0x48,0xb5,0xf8,0xd7,0x05,0x51,0xca,0xd4,0xb3,0xa7,0x90,0x3a,0x05,0xe3,0x32,0x24,0xaa,0x3a};
    sm9_fp_from_bytes(a, a67);
    sm9_fp_from_bytes(b, b67);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a68[32] = {0x33,0x13,0xad,0xba,0x7b,0xf4,0x11,0x40,0x27,0x2c,0x6f,0xd3,0xa0,0x67,0x59,0x95,0xe7,0xb8,0x88,0xf9,0x43,0xda,0x96,0x60,0x13,0xa8,0xa5,0x83,0x8e,0xb7,0x77,0x5a};
    static std::uint8_t b68[32] = {0x39,0x71,0xaa,0x5c,0x4d,0xbd,0x8c,0xf1,0x82,0x40,0xd2,0x90,0x6e,0x21,0xb3,0x2c,0x0b,0x64,0xcf,0x47,0x70,0x8d,0x76,0x5b,0xf6,0xfe,0xc2,0x99,0x4c,0x3a,0x37,0xfc};
    static std::uint8_t c68[32] = {0xa1,0x71,0xc7,0x53,0xb4,0x88,0xca,0x85,0x4c,0xfe,0xea,0xa8,0xc5,0x8f,0x10,0xfc,0x65,0xbb,0x8c,0x91,0xb7,0x07,0x01,0x1b,0x38,0x12,0x96,0x61,0xfd,0x1f,0xda,0xd2};
    sm9_fp_from_bytes(a, a68);
    sm9_fp_from_bytes(b, b68);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a69[32] = {0x35,0x45,0xc8,0x47,0xba,0x30,0x82,0x3d,0x18,0xcb,0x89,0xb8,0x81,0x6a,0x30,0x80,0x04,0x71,0x35,0x57,0xb8,0x9c,0x43,0x3a,0x8f,0x42,0x59,0xe4,0x3c,0x06,0x1b,0x52};
    static std::uint8_t b69[32] = {0x43,0x17,0x14,0x77,0xd9,0xf5,0x8b,0xe4,0xb1,0x33,0xc2,0xca,0x22,0xc9,0x5e,0xef,0xfa,0x61,0x1d,0x78,0x1b,0x38,0xa9,0x07,0x38,0x2f,0xac,0x4d,0x92,0x46,0xd6,0xc7};
    static std::uint8_t c69[32] = {0x3c,0x4a,0xc3,0x11,0xaf,0x75,0x0e,0x79,0x05,0xee,0xe0,0xa0,0x2f,0x3f,0x4c,0xe7,0xc8,0xf6,0x57,0xc5,0xc6,0x68,0x62,0xf1,0x3d,0xc1,0xb7,0x78,0x74,0x39,0x10,0x30};
    sm9_fp_from_bytes(a, a69);
    sm9_fp_from_bytes(b, b69);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a70[32] = {0x07,0xe4,0x53,0xeb,0x2d,0xa0,0x8f,0x7e,0xa7,0xd4,0x05,0x9d,0xf3,0x6d,0xb9,0x44,0x29,0x98,0x0c,0x2d,0x2b,0x8a,0x0c,0xe2,0x5b,0x45,0xa3,0xed,0x3a,0x4e,0x96,0xa9};
    static std::uint8_t b70[32] = {0x31,0x9b,0x77,0xaf,0x08,0xee,0x1f,0x2e,0x15,0x43,0x70,0x11,0x38,0x3c,0x73,0xfa,0x0d,0x22,0xbb,0xe4,0x8d,0x69,0xc0,0xa9,0x45,0xba,0x36,0x07,0x75,0x5c,0x19,0xcc};
    static std::uint8_t c70[32] = {0x9d,0x11,0x32,0xe6,0x18,0xb5,0x97,0x25,0x36,0xe0,0x3c,0xa9,0x91,0xcd,0x12,0xa9,0x14,0x7b,0xac,0xff,0xfc,0x60,0x31,0xd2,0x78,0xac,0xcb,0x3a,0xdc,0x28,0xe3,0xf0};
    sm9_fp_from_bytes(a, a70);
    sm9_fp_from_bytes(b, b70);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a71[32] = {0x51,0xe7,0xac,0xe8,0x06,0x8e,0xb2,0x45,0x69,0x76,0xc5,0x29,0x47,0x9f,0x95,0xbb,0xdd,0x43,0xbb,0x1f,0xc6,0xd3,0x00,0xd3,0xf3,0x24,0xfa,0x44,0xd9,0xec,0x3b,0x4d};
    static std::uint8_t b71[32] = {0x83,0x92,0x96,0xa1,0x99,0x0a,0x91,0xed,0x1f,0x5b,0xe4,0x59,0x15,0x46,0xa1,0x65,0x22,0xfb,0x8d,0x12,0xa4,0x71,0xf6,0x16,0xf5,0xa9,0x02,0x49,0x7a,0x17,0x8d,0x8b};
    static std::uint8_t c71[32] = {0x8f,0x36,0xc6,0xa3,0x2a,0x1b,0x2b,0xf6,0x49,0x33,0x4e,0xb5,0x4d,0x3a,0x6e,0xac,0x46,0x3a,0xbb,0x47,0x4a,0xcb,0xaa,0xfa,0x45,0x77,0x1f,0xf9,0xda,0xbf,0xab,0xcc};
    sm9_fp_from_bytes(a, a71);
    sm9_fp_from_bytes(b, b71);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a72[32] = {0x24,0xab,0xe9,0x89,0xb5,0xc8,0x6d,0xc6,0x52,0x99,0x08,0x5f,0x7d,0x55,0x0a,0xfc,0xf4,0xdc,0x54,0x60,0x43,0x23,0x4d,0x55,0xba,0x27,0x18,0xbe,0x9e,0xaa,0x3d,0x5e};
    static std::uint8_t b72[32] = {0x12,0x1c,0x0c,0x59,0x88,0x7a,0x99,0xe5,0xdb,0x12,0x7a,0x46,0x43,0x95,0x74,0x0a,0x64,0xdb,0x3f,0x08,0x69,0xdb,0x4f,0xbd,0x10,0xbf,0xf6,0x82,0xc3,0x8c,0xc5,0x6d};
    static std::uint8_t c72[32] = {0x45,0x2c,0x17,0x2d,0x37,0xd9,0xc0,0xdf,0x3a,0xa3,0x53,0xd9,0x92,0x2a,0xba,0xd7,0xd9,0x2e,0x7e,0xde,0xee,0x5a,0x20,0x75,0xed,0xb4,0xab,0x9b,0x1d,0x1e,0x38,0x87};
    sm9_fp_from_bytes(a, a72);
    sm9_fp_from_bytes(b, b72);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a73[32] = {0x48,0x18,0x43,0x2e,0x92,0x3b,0x37,0x1a,0x75,0x65,0xb8,0x36,0xd4,0x06,0x0f,0x3c,0x42,0x92,0x64,0x86,0x58,0x21,0xa6,0x48,0xe0,0x15,0xf0,0xb1,0x19,0x4f,0xec,0xe2};
    static std::uint8_t b73[32] = {0x22,0x69,0x04,0xf9,0x86,0xe4,0xf6,0xd2,0x8a,0xd3,0x0e,0x0f,0xa4,0xcf,0x9b,0x1a,0x05,0x4a,0xf9,0x14,0xe5,0x45,0xc9,0x83,0x90,0xcf,0xb0,0x0f,0x40,0xbe,0x4e,0x85};
    static std::uint8_t c73[32] = {0x75,0x84,0x60,0x6d,0x0f,0xbd,0x15,0x42,0x35,0x8d,0x21,0xa8,0x88,0x5b,0xbe,0x13,0x33,0x88,0x97,0x5e,0x19,0xbf,0x5e,0x5c,0xf6,0x5e,0xcd,0x0f,0xea,0x1f,0xf0,0x78};
    sm9_fp_from_bytes(a, a73);
    sm9_fp_from_bytes(b, b73);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a74[32] = {0x00,0xda,0x82,0x0a,0x2d,0x1c,0x04,0xe7,0x25,0xf4,0xe3,0x5d,0x95,0x87,0x09,0x62,0x4a,0x51,0x9e,0xf2,0x58,0xef,0x57,0x3a,0x75,0xed,0x39,0x2d,0xcc,0x3b,0x5b,0xe1};
    static std::uint8_t b74[32] = {0x67,0x0a,0xd2,0x94,0x1a,0x4b,0xe5,0x8d,0x42,0x44,0xfa,0x55,0x23,0xf0,0x3c,0xdb,0xa9,0x9d,0xdb,0x12,0x13,0x6e,0xff,0xc8,0xbb,0x3b,0xee,0x6b,0xfb,0x60,0xc5,0x80};
    static std::uint8_t c74[32] = {0x18,0x88,0x67,0x7b,0x54,0xf0,0xee,0x3b,0x53,0x4e,0x76,0xf7,0x1b,0x3a,0xb9,0x9f,0x0b,0x86,0x15,0x8c,0x2b,0x92,0xb9,0x0d,0xab,0x6f,0x50,0x5d,0xbc,0x34,0xff,0x4b};
    sm9_fp_from_bytes(a, a74);
    sm9_fp_from_bytes(b, b74);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a75[32] = {0x7b,0x0a,0x93,0xda,0x0e,0xe4,0x7b,0x06,0xa4,0x1b,0x94,0x31,0x20,0x64,0xf8,0x62,0x09,0x3d,0xd7,0x5b,0x31,0x7a,0x68,0x8d,0xcc,0xeb,0xaf,0xff,0x3a,0x35,0x98,0x9b};
    static std::uint8_t b75[32] = {0x99,0x59,0x5e,0x26,0x35,0x4c,0x7b,0x44,0x9c,0x28,0x6f,0xdd,0xb2,0x58,0x3d,0x6b,0xc0,0xc7,0x28,0xfb,0xdc,0x48,0x2d,0x75,0xba,0x90,0x40,0xd5,0x13,0x62,0x88,0xd4};
    static std::uint8_t c75[32] = {0xa1,0x0a,0x37,0x02,0xa3,0xda,0x49,0x8b,0x02,0x3c,0x36,0x15,0xb7,0xf9,0xba,0xd0,0x5b,0x0e,0x92,0xd7,0x69,0x51,0x3a,0x09,0x5c,0x4e,0xf6,0xcc,0xe9,0xca,0xc1,0x8d};
    sm9_fp_from_bytes(a, a75);
    sm9_fp_from_bytes(b, b75);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a76[32] = {0x42,0x8f,0x7a,0x33,0xf8,0x86,0xe0,0x4f,0x54,0xbb,0x74,0xd0,0xda,0x11,0xd8,0x92,0x8e,0x07,0x1e,0x00,0xf5,0xb5,0x5f,0x44,0xcd,0xfa,0xe8,0x95,0xf8,0xae,0x25,0xc7};
    static std::uint8_t b76[32] = {0x77,0x67,0x83,0xec,0x39,0x49,0x98,0x49,0x61,0x1c,0x67,0x7a,0xa2,0xde,0xc8,0xeb,0x77,0x97,0x69,0x3f,0x71,0xa9,0xda,0x16,0x4f,0x76,0xf9,0xef,0x22,0x4a,0x38,0x3f};
    static std::uint8_t c76[32] = {0x84,0x31,0x2f,0x5b,0xfe,0x20,0x54,0xb6,0x71,0x99,0x56,0x8b,0x80,0xa2,0x5e,0x0c,0xee,0xb9,0x38,0x90,0xb1,0xe4,0xa7,0x12,0x3c,0x49,0x5a,0xfd,0x16,0x05,0x56,0x9a};
    sm9_fp_from_bytes(a, a76);
    sm9_fp_from_bytes(b, b76);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a77[32] = {0x0f,0xa6,0x03,0xd8,0x73,0xb4,0x79,0x32,0x29,0x27,0x99,0xda,0x01,0x06,0x6b,0x5a,0x03,0x7a,0xb5,0xbc,0x5a,0xd6,0x27,0x55,0xe2,0x66,0x17,0x4b,0xdc,0xe3,0x92,0x8c};
    static std::uint8_t b77[32] = {0x82,0xe3,0x78,0xc7,0x4e,0xb5,0xa0,0xa7,0x28,0x2a,0x4e,0xcf,0x57,0x25,0x90,0x95,0xec,0x44,0x6c,0xf6,0x55,0x54,0x26,0xa2,0x1a,0x6a,0xdf,0x48,0x48,0x75,0xef,0x88};
    static std::uint8_t c77[32] = {0x6d,0x69,0x41,0xd8,0xee,0x2f,0xed,0x84,0x33,0x09,0x41,0xd6,0x00,0x01,0x15,0xdc,0xd7,0x7c,0x55,0xb6,0xdd,0xba,0xd0,0xd7,0x81,0x1e,0x2e,0x14,0x9f,0xfb,0x16,0x80};
    sm9_fp_from_bytes(a, a77);
    sm9_fp_from_bytes(b, b77);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a78[32] = {0x71,0xcf,0xf0,0xbe,0xb2,0x16,0xba,0xf9,0xac,0xfe,0x92,0x5c,0xc5,0x4d,0x0e,0x98,0x6b,0x12,0x49,0x1d,0x6e,0x5d,0x22,0xe2,0xf5,0x22,0xcf,0xe5,0xa7,0xff,0xbb,0xd0};
    static std::uint8_t b78[32] = {0x23,0xb1,0x8e,0xf6,0xed,0x41,0xe0,0x53,0xdd,0xdc,0xbe,0xb6,0x46,0x7f,0x2f,0xf5,0x19,0x69,0x9c,0xcb,0xc2,0x35,0x51,0x66,0xa6,0x91,0x18,0xd0,0xc5,0xc8,0x6d,0xba};
    static std::uint8_t c78[32] = {0xa5,0xf7,0x50,0xc1,0x79,0xa5,0xb6,0x20,0xcd,0x0b,0xd9,0xce,0xad,0x78,0x3a,0xc3,0x6b,0x40,0xe8,0x48,0xaa,0x09,0x15,0x0c,0xc4,0x99,0x2b,0x42,0x26,0xb7,0xdf,0x97};
    sm9_fp_from_bytes(a, a78);
    sm9_fp_from_bytes(b, b78);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a79[32] = {0x32,0xd6,0xae,0x28,0x91,0x21,0xb1,0xd6,0x4c,0x1a,0xe4,0x2f,0x38,0x6a,0x12,0x1e,0xe3,0x67,0x06,0x7b,0x51,0x56,0x3c,0xa1,0xc6,0x3a,0x39,0x23,0xda,0x2f,0xae,0x92};
    static std::uint8_t b79[32] = {0x08,0xba,0xb4,0xfe,0x4e,0xb5,0x9e,0x0f,0xea,0x10,0x6d,0xd0,0x15,0xcb,0x75,0xfc,0xc4,0x1f,0xad,0xd1,0x31,0x83,0x29,0x99,0xd1,0x91,0x77,0x69,0x25,0xf8,0x11,0x04};
    static std::uint8_t c79[32] = {0x56,0x0d,0xb5,0xff,0x71,0x1c,0x63,0x10,0xcd,0xba,0x38,0x6d,0x5b,0x6f,0xaf,0x58,0x33,0x89,0xa1,0x1c,0x2d,0x30,0x25,0x83,0xbf,0x47,0x13,0x37,0x49,0x08,0x17,0x46};
    sm9_fp_from_bytes(a, a79);
    sm9_fp_from_bytes(b, b79);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a80[32] = {0x12,0x24,0x8a,0xa1,0x91,0x79,0x80,0x13,0xc7,0x45,0x5e,0x63,0xeb,0xd1,0x1e,0x1f,0x73,0x7b,0x77,0x8c,0xdb,0xcb,0x5c,0x19,0xa9,0xf0,0xb7,0x74,0x84,0x54,0x73,0x66};
    static std::uint8_t b80[32] = {0x60,0xaf,0xb1,0x09,0xb2,0x98,0x39,0xfa,0x6c,0x13,0xbb,0xc2,0xb0,0x46,0x85,0x34,0xff,0x44,0x6e,0x8e,0x7f,0x85,0xcb,0xb0,0xe2,0xe5,0xb5,0x80,0x7c,0x80,0x3b,0x87};
    static std::uint8_t c80[32] = {0xa8,0x56,0x2e,0x60,0x98,0xef,0x84,0xd3,0x82,0xe8,0x6b,0xde,0x3c,0xb2,0x68,0xae,0xb3,0x9a,0xfb,0xdb,0xd4,0xe2,0x7d,0xd9,0x14,0x8e,0x15,0xae,0x24,0x41,0x1b,0x38};
    sm9_fp_from_bytes(a, a80);
    sm9_fp_from_bytes(b, b80);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a81[32] = {0x51,0xfd,0xb7,0x45,0xd6,0x77,0x05,0xb6,0x5d,0xd3,0xff,0xeb,0x43,0x65,0xdd,0xef,0x04,0x20,0x25,0x20,0x3f,0xc9,0x3b,0x98,0x83,0xc7,0x6a,0xdb,0xdb,0xee,0xd0,0x36};
    static std::uint8_t b81[32] = {0x0c,0xda,0xf2,0x2d,0xe9,0xe7,0x35,0xf7,0xe1,0x4e,0x86,0x1e,0x9f,0x58,0x16,0x2a,0x1d,0xed,0x84,0x07,0x2e,0x17,0xaf,0x96,0x6c,0xde,0xc6,0xb8,0x7d,0x7c,0x40,0x28};
    static std::uint8_t c81[32] = {0x32,0xcf,0x75,0x0f,0x2b,0x8b,0x6d,0x09,0xc3,0x6e,0x60,0xfc,0x07,0x1d,0x20,0x88,0xbf,0xaa,0xe5,0xb6,0x93,0x67,0x60,0x2f,0x3c,0x07,0x93,0x6a,0xfe,0x8a,0x39,0xd0};
    sm9_fp_from_bytes(a, a81);
    sm9_fp_from_bytes(b, b81);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a82[32] = {0x20,0xa0,0x6f,0x4b,0x09,0x4b,0x1a,0xa9,0x3c,0xdb,0xdd,0xa0,0x88,0x9b,0xb4,0x73,0x6f,0x9e,0xac,0x6a,0x17,0x19,0x64,0xe9,0x8d,0x92,0x0d,0x50,0xc2,0xaf,0xb5,0xd0};
    static std::uint8_t b82[32] = {0x53,0xec,0x9c,0xc1,0x8c,0x76,0x20,0x12,0xbf,0x4b,0x7d,0x4e,0x7c,0x09,0x5e,0xb2,0xd4,0x8d,0xb6,0xa9,0x24,0x72,0xcf,0xfd,0x53,0x77,0xcc,0x4e,0x95,0xfc,0x82,0x17};
    static std::uint8_t c82[32] = {0xa1,0x94,0x9a,0xe8,0xa7,0x94,0xdd,0xc1,0x55,0x1f,0xc8,0x99,0x1e,0x32,0x42,0xec,0x2f,0x1f,0x56,0x26,0x5a,0xfb,0xbd,0x44,0x6d,0x46,0xa9,0xf4,0x4b,0x43,0xbf,0x52};
    sm9_fp_from_bytes(a, a82);
    sm9_fp_from_bytes(b, b82);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a83[32] = {0x0b,0x52,0x96,0x24,0xc1,0x08,0x90,0x98,0x68,0xb2,0xfd,0x5e,0xe3,0xf3,0x3a,0x00,0xa9,0x39,0xdf,0x87,0x49,0x21,0xd2,0x09,0xa9,0xaa,0xd6,0xb1,0x89,0x5d,0x20,0x96};
    static std::uint8_t b83[32] = {0x17,0x21,0xf2,0xc7,0xdc,0x48,0x68,0x6a,0x7d,0x47,0xe7,0xc6,0x69,0xaf,0xa8,0x7d,0x4f,0xaa,0xda,0xdd,0xaf,0xc5,0x53,0xda,0x51,0x88,0x32,0x1b,0xad,0x54,0x06,0xe5};
    static std::uint8_t c83[32] = {0x56,0xa1,0x57,0xb1,0xc9,0xc6,0x2a,0x7c,0x85,0xa6,0xd0,0xc0,0x82,0xe7,0x53,0x6c,0x88,0xd5,0xf4,0xb5,0xe9,0xfb,0xee,0x72,0xc5,0xc5,0x9b,0xeb,0x3b,0x4b,0xb6,0xf6};
    sm9_fp_from_bytes(a, a83);
    sm9_fp_from_bytes(b, b83);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a84[32] = {0x1e,0x82,0x70,0xdf,0xaf,0x7d,0x7e,0xe6,0x65,0xe8,0xd0,0x35,0xad,0x46,0xaa,0x6d,0x26,0xb9,0xcb,0xa5,0x42,0x66,0xfc,0x72,0x61,0x5c,0x98,0xc7,0x21,0x11,0xed,0xd0};
    static std::uint8_t b84[32] = {0x38,0x78,0xa3,0xee,0x7c,0x28,0x8e,0x14,0x9b,0x2e,0x3b,0xa8,0x8b,0x94,0x20,0x07,0x5c,0xdb,0xe0,0x74,0x6a,0x08,0xea,0x9c,0xdf,0x62,0x73,0x37,0x17,0x77,0xc5,0x62};
    static std::uint8_t c84[32] = {0x49,0x74,0x17,0xaa,0xb6,0xa3,0x9d,0x26,0x37,0x67,0x9b,0x09,0x3e,0xb0,0x15,0x7a,0xd7,0x9d,0x63,0x53,0x71,0x36,0x29,0x03,0x51,0xff,0x80,0x54,0x82,0x53,0x0e,0xce};
    sm9_fp_from_bytes(a, a84);
    sm9_fp_from_bytes(b, b84);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a85[32] = {0x9e,0x91,0xcd,0xea,0x74,0xff,0x61,0x4d,0x46,0x8d,0x0c,0x35,0x19,0xcb,0xc4,0x13,0x68,0x4b,0x84,0x6f,0x3a,0x63,0xde,0x13,0xa5,0xab,0x76,0xcc,0x00,0x86,0xca,0xf7};
    static std::uint8_t b85[32] = {0x1e,0x5f,0x2b,0x5e,0x32,0x3c,0x4d,0xfc,0x04,0xa0,0xb1,0x73,0x70,0x06,0xb0,0x14,0xd6,0x22,0x85,0xac,0x43,0x4d,0xac,0x43,0x5e,0x57,0x1f,0xc1,0xcf,0xa7,0x8c,0x76};
    static std::uint8_t c85[32] = {0x8f,0x9b,0xf3,0x94,0xd4,0x34,0x89,0x6d,0x59,0x1d,0xdb,0xb8,0x95,0x29,0xe9,0xe4,0xae,0x35,0xe8,0xd6,0x56,0x2e,0x3d,0xb0,0xcc,0xac,0x84,0xfb,0xe4,0x45,0x97,0xfe};
    sm9_fp_from_bytes(a, a85);
    sm9_fp_from_bytes(b, b85);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a86[32] = {0x7a,0x99,0x96,0xd4,0x0e,0x46,0x32,0x69,0x0d,0x08,0x4c,0x38,0x65,0x55,0x30,0x3b,0xab,0x89,0x3f,0x3c,0x83,0x49,0x20,0x34,0xb5,0xb3,0x98,0xae,0x78,0x93,0xe5,0x4b};
    static std::uint8_t b86[32] = {0x30,0x86,0x6c,0xd2,0x53,0x61,0x42,0x29,0x4b,0xe0,0x2a,0x3b,0x37,0xd6,0x12,0xc4,0xc9,0xaa,0x52,0xbe,0x14,0x11,0xad,0x04,0x8a,0x30,0x13,0x14,0xc9,0xbd,0xeb,0x74};
    static std::uint8_t c86[32] = {0x1d,0xb6,0x36,0x0a,0x80,0x57,0x64,0x02,0x5a,0xb7,0x03,0x71,0x4e,0xe3,0x95,0xcb,0xa7,0xd5,0x86,0x17,0xfb,0xa9,0xf7,0x8d,0xce,0x10,0xb6,0xd0,0xb3,0xef,0x14,0x30};
    sm9_fp_from_bytes(a, a86);
    sm9_fp_from_bytes(b, b86);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a87[32] = {0x4a,0x38,0xc8,0xd4,0xb7,0x46,0x2b,0x69,0x27,0xab,0xa4,0xfd,0x58,0x62,0xc7,0x09,0xe2,0x94,0x88,0x36,0x9c,0xf6,0x1f,0x3a,0xcc,0x8b,0x11,0xbd,0x57,0x1d,0x8e,0x10};
    static std::uint8_t b87[32] = {0x9e,0xf6,0x49,0xff,0x86,0xf1,0x47,0xe2,0x26,0x83,0xb2,0x9a,0x34,0x51,0x04,0xbe,0x4b,0x13,0x3f,0x76,0xe8,0xdc,0xb9,0x54,0x7b,0xef,0xba,0x06,0x9f,0x6a,0x18,0x8d};
    static std::uint8_t c87[32] = {0x5e,0x4a,0x1f,0x38,0x54,0xf7,0xdd,0x64,0x07,0x0b,0x90,0x00,0xfe,0xc8,0xb9,0x89,0x5e,0x69,0x33,0x3f,0x58,0x96,0x9c,0xe0,0x21,0xb8,0x19,0x94,0xb9,0xd6,0xf5,0xcc};
    sm9_fp_from_bytes(a, a87);
    sm9_fp_from_bytes(b, b87);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a88[32] = {0x0c,0x85,0x03,0x50,0xbd,0x10,0xb0,0xb2,0xb9,0x6a,0x31,0x65,0x2b,0x96,0x93,0x0e,0x6f,0xf8,0x9c,0x56,0x38,0xd0,0xfc,0xd5,0xca,0x86,0xaa,0x74,0xf3,0x83,0x61,0x63};
    static std::uint8_t b88[32] = {0x38,0xa7,0x55,0xe6,0xb0,0xfb,0xc3,0xb5,0x5b,0x56,0x9a,0x5d,0xb3,0x2b,0x9e,0x5b,0xfa,0x1f,0x28,0x66,0xb6,0x27,0x80,0x65,0x16,0xae,0x1b,0xfb,0x79,0x1a,0x32,0xa7};
    static std::uint8_t c88[32] = {0x20,0xfb,0x93,0x90,0xc6,0x96,0x4f,0xfc,0x4c,0x9d,0x16,0xe5,0x2b,0xf7,0x0d,0x6b,0x3b,0x7b,0x36,0xd6,0x39,0xd4,0x5d,0x07,0x65,0xe9,0xf1,0x6b,0x03,0xec,0x1f,0x33};
    sm9_fp_from_bytes(a, a88);
    sm9_fp_from_bytes(b, b88);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a89[32] = {0x4a,0x2d,0x1b,0xac,0x0d,0xf9,0x3c,0x4f,0x61,0xf7,0x82,0x5c,0xd4,0x14,0x24,0x23,0x80,0xa4,0x6a,0xc1,0x05,0xf2,0xb7,0x5f,0x5d,0xcd,0xec,0x9f,0x59,0x9f,0x2c,0x1d};
    static std::uint8_t b89[32] = {0x41,0x00,0x5e,0x59,0xf6,0x41,0x6a,0x79,0x16,0xbf,0xf5,0x8b,0x4f,0x78,0x92,0x09,0x32,0x20,0xd6,0x73,0x46,0xfd,0x00,0x9d,0xeb,0x42,0xda,0x1b,0x04,0x3c,0x28,0x3a};
    static std::uint8_t c89[32] = {0x31,0xf9,0x9d,0x79,0x10,0x13,0xf6,0xbf,0xaa,0xff,0x0d,0x77,0x03,0x1a,0x6e,0xd2,0xf9,0x48,0xf9,0x5d,0x32,0xb4,0xb8,0xf9,0x20,0x90,0xda,0x75,0xc3,0x6a,0xde,0x27};
    sm9_fp_from_bytes(a, a89);
    sm9_fp_from_bytes(b, b89);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a90[32] = {0x22,0x76,0xd2,0x8e,0x9b,0x9b,0xa7,0x02,0x31,0x67,0x93,0xf3,0xe8,0x63,0x22,0xda,0x1e,0x3e,0x07,0x72,0xf0,0xdf,0x39,0xf1,0x92,0x7e,0xb8,0x0b,0xe5,0x15,0xda,0xc7};
    static std::uint8_t b90[32] = {0xb2,0xf9,0x45,0x02,0xe4,0x0e,0xb8,0xc6,0x14,0xd6,0x9c,0xb1,0x32,0x0b,0xb8,0xa9,0xc8,0x84,0xfd,0x4a,0x34,0xd2,0x09,0x28,0xdc,0x06,0x69,0x46,0x2c,0xc5,0x34,0x26};
    static std::uint8_t c90[32] = {0x8a,0x17,0x29,0x03,0x22,0x95,0xa2,0x32,0xe2,0x6e,0xea,0x27,0xb8,0x8b,0x89,0x46,0x49,0xd5,0x2f,0x47,0x43,0x25,0x96,0x46,0x58,0x97,0xca,0x1a,0xf8,0xf9,0xce,0xa7};
    sm9_fp_from_bytes(a, a90);
    sm9_fp_from_bytes(b, b90);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a91[32] = {0x10,0xcb,0xde,0x65,0x4a,0x68,0xaf,0xb6,0xcb,0x68,0x1e,0xaf,0xeb,0x9a,0x36,0x53,0xc0,0x92,0xa1,0x47,0xee,0x54,0xf2,0x47,0x93,0xfb,0x72,0xe8,0x75,0x0c,0x72,0xa0};
    static std::uint8_t b91[32] = {0xa0,0xdd,0xef,0x58,0x77,0xba,0x8f,0xe0,0xfa,0xee,0x06,0x22,0xa5,0x26,0x66,0x6e,0xb5,0xc7,0x2d,0x2e,0xab,0x84,0x0c,0x41,0x07,0xf9,0x8c,0xee,0x11,0xa8,0x52,0x60};
    static std::uint8_t c91[32] = {0x6b,0xed,0x92,0x80,0x18,0xd6,0x82,0x99,0x50,0xbb,0xfb,0xdb,0xc0,0xb3,0x1e,0x09,0x07,0xbc,0xa9,0x00,0xa8,0xfa,0xde,0xaf,0xb3,0xbe,0x5e,0xf1,0x95,0x2f,0x46,0x3b};
    sm9_fp_from_bytes(a, a91);
    sm9_fp_from_bytes(b, b91);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a92[32] = {0xa1,0x61,0x12,0xfc,0x92,0x6f,0xbd,0x6f,0x31,0x1d,0xb8,0xa7,0x8e,0xaa,0xc1,0x6c,0x90,0x7c,0xbb,0x0a,0x94,0x86,0xc9,0xc9,0x50,0x44,0x27,0xf6,0x5c,0x13,0xe1,0x63};
    static std::uint8_t b92[32] = {0x22,0xd7,0xc7,0x86,0xab,0xbc,0x92,0x6a,0x94,0xe1,0xe4,0x64,0xb2,0xeb,0xbb,0x1c,0x14,0xe6,0xd1,0x8b,0xa4,0xcb,0x0b,0x90,0xa4,0xd3,0x77,0x99,0x2b,0x0d,0xbe,0x6f};
    static std::uint8_t c92[32] = {0x27,0xbd,0x72,0x02,0xa5,0xe0,0xfe,0x66,0x22,0xf6,0x54,0xc1,0xc9,0xfa,0x80,0xe6,0xd1,0xeb,0x5b,0x54,0xe6,0xed,0x4e,0x6d,0xf7,0xb7,0x0b,0x7a,0x23,0xa5,0x69,0x0b};
    sm9_fp_from_bytes(a, a92);
    sm9_fp_from_bytes(b, b92);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a93[32] = {0x7d,0x54,0x4b,0xec,0xfe,0x90,0x13,0x46,0x83,0x24,0xf9,0x41,0x08,0xa5,0x5f,0x03,0x12,0x19,0x07,0xaa,0xd2,0xbd,0xcc,0x36,0xa3,0xcb,0x39,0x1c,0xcf,0x9a,0x8a,0x0a};
    static std::uint8_t b93[32] = {0x8f,0x1d,0x7e,0x44,0x85,0x42,0xa7,0x9c,0x75,0x3f,0x52,0x4f,0x5d,0x1c,0x8e,0x8a,0x0f,0x6b,0xce,0x5b,0x39,0xd9,0xbb,0xe6,0x3b,0xbd,0x3e,0x90,0x17,0xed,0x89,0x0a};
    static std::uint8_t c93[32] = {0x6a,0x75,0x16,0xb2,0x46,0x56,0x32,0x31,0xae,0x5b,0x15,0x1b,0x1a,0xba,0x83,0x8a,0xc5,0x6f,0x54,0x75,0x9c,0x87,0xd6,0xd3,0xc4,0x11,0x07,0xcf,0xd2,0x37,0xa0,0x63};
    sm9_fp_from_bytes(a, a93);
    sm9_fp_from_bytes(b, b93);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a94[32] = {0x43,0xfa,0x45,0x6a,0x5a,0x08,0x7c,0x3d,0x25,0xc1,0xb8,0xfd,0x6f,0x34,0xef,0xe1,0x80,0x80,0x1c,0xe0,0xfa,0xed,0x1e,0x3a,0x39,0x86,0x8d,0x46,0xc5,0xb9,0x4f,0xa6};
    static std::uint8_t b94[32] = {0x60,0x4a,0xe1,0xf5,0xbf,0x8e,0x10,0x04,0x1d,0xb1,0x05,0xd9,0x71,0xfa,0x95,0x95,0x56,0x35,0x0c,0xfd,0xfd,0xf0,0x8b,0x44,0x97,0xe8,0x46,0x9e,0x0a,0xf7,0x1f,0x51};
    static std::uint8_t c94[32] = {0x1e,0x07,0x3e,0xd6,0xc9,0x62,0x7f,0xd9,0x25,0xbf,0xdd,0x34,0x9e,0x89,0x29,0x3f,0x30,0x40,0x7a,0xf7,0x4e,0x5b,0xce,0xb8,0x2d,0xc2,0x06,0x10,0x70,0xf0,0x71,0x02};
    sm9_fp_from_bytes(a, a94);
    sm9_fp_from_bytes(b, b94);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a95[32] = {0x86,0x09,0x92,0x8b,0x23,0x6e,0x96,0xd8,0x1b,0xe7,0xba,0xc8,0x94,0x37,0x5f,0x31,0x40,0x11,0xaa,0x63,0xae,0x6b,0xbc,0x8e,0xc8,0x53,0x77,0x4c,0x83,0x85,0x8b,0x5f};
    static std::uint8_t b95[32] = {0x11,0x60,0x2a,0xc4,0x62,0x93,0x46,0x08,0xe2,0xd8,0x31,0xb4,0xa6,0x82,0xdc,0x21,0xc5,0xaf,0xb2,0x11,0xa2,0xa8,0x16,0xe0,0x33,0xfa,0x5d,0xe3,0xb5,0x31,0x53,0x12};
    static std::uint8_t c95[32] = {0x49,0xa6,0x2d,0x85,0x36,0x5f,0x95,0x15,0x01,0x78,0x8d,0x93,0xd6,0x29,0x36,0x38,0x8e,0xb4,0xbd,0x3f,0xcc,0xd8,0x1c,0xd8,0x3a,0xa8,0xf4,0x69,0x5b,0xd8,0x6b,0x4a};
    sm9_fp_from_bytes(a, a95);
    sm9_fp_from_bytes(b, b95);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a96[32] = {0x25,0x23,0xd0,0xfa,0xa5,0xde,0x63,0x23,0x14,0x01,0x62,0xef,0x52,0x7a,0xd6,0xd1,0x9a,0x7a,0x06,0x48,0x2f,0x7a,0x7b,0x4d,0x22,0x48,0xfb,0x77,0x20,0xf5,0x54,0xbb};
    static std::uint8_t b96[32] = {0x83,0xf1,0x7e,0x94,0x1d,0xe0,0xd2,0x08,0xae,0x7b,0x62,0x9a,0xa5,0x6f,0x23,0xab,0xfa,0xe9,0xba,0x91,0x5c,0x8e,0x08,0x8a,0xed,0x63,0xc3,0x79,0x47,0xf0,0x08,0x3b};
    static std::uint8_t c96[32] = {0x34,0x77,0x71,0xae,0xc2,0x30,0x5d,0x13,0xb9,0x49,0x7d,0x0d,0x40,0x54,0xdb,0x32,0xc3,0x17,0xde,0xd9,0x89,0x1d,0x72,0x2b,0xdd,0x7f,0x49,0xfd,0xe8,0x38,0xb8,0xc0};
    sm9_fp_from_bytes(a, a96);
    sm9_fp_from_bytes(b, b96);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a97[32] = {0x2f,0x54,0xa3,0xde,0x1f,0x8d,0xf3,0x89,0x8a,0xf2,0x3c,0x1c,0x24,0x8a,0x48,0xbe,0x37,0xee,0x3e,0x69,0x0f,0x99,0x9b,0x0a,0xf7,0x80,0x62,0xef,0xe3,0x9d,0xe2,0xc7};
    static std::uint8_t b97[32] = {0x3f,0xe5,0x64,0xe0,0x53,0xd0,0xca,0xf7,0x98,0x91,0x11,0x60,0xfc,0x5c,0xbd,0x87,0x6e,0xcd,0x90,0x49,0x9c,0x91,0xfd,0x89,0xdc,0x2f,0xfa,0x71,0xee,0x55,0x88,0x93};
    static std::uint8_t c97[32] = {0x67,0xe0,0x08,0x63,0xd2,0x96,0x5b,0x8a,0x06,0x00,0x2e,0xc3,0xd1,0xce,0xfc,0xd5,0x07,0x26,0x90,0xd3,0x61,0x28,0xf3,0xa6,0x45,0x1d,0x04,0xba,0x2f,0x3b,0x32,0x69};
    sm9_fp_from_bytes(a, a97);
    sm9_fp_from_bytes(b, b97);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a98[32] = {0x7a,0x8c,0x0f,0xac,0x94,0xec,0x14,0xda,0xcc,0xda,0x64,0xf5,0xf9,0x9c,0x2d,0x39,0xc6,0xdd,0xdc,0x4e,0xd7,0x43,0xea,0xbd,0x4e,0x3b,0xca,0x9f,0xa1,0x51,0xc6,0x55};
    static std::uint8_t b98[32] = {0x69,0xca,0x27,0xaf,0x76,0xd3,0x2c,0x7a,0x4d,0xba,0xd3,0xe6,0x19,0x7c,0x56,0x8c,0x6f,0x37,0x90,0x49,0x46,0x5d,0x97,0x73,0x08,0xe3,0x69,0x4e,0x64,0x36,0x43,0xbd};
    static std::uint8_t c98[32] = {0x5f,0x48,0x50,0x4f,0x18,0x56,0xea,0x77,0xd2,0x52,0x74,0xa1,0x55,0x38,0x15,0xf2,0xaa,0xa7,0xe4,0xbb,0x43,0xf6,0x32,0x3f,0x95,0xc7,0xba,0x47,0x25,0x2a,0x25,0x6b};
    sm9_fp_from_bytes(a, a98);
    sm9_fp_from_bytes(b, b98);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
    static std::uint8_t a99[32] = {0x20,0xf7,0xcf,0x44,0xf4,0xbe,0x09,0x73,0x64,0x94,0x62,0x1a,0x3b,0x9c,0x7d,0x7d,0xa2,0x4c,0x3e,0x12,0xb7,0x1a,0x44,0xec,0xde,0x02,0x6c,0xd5,0xd5,0x19,0x36,0xde};
    static std::uint8_t b99[32] = {0x18,0x5d,0x06,0x28,0x45,0x53,0x6e,0xb4,0xe3,0x80,0xbb,0x40,0xe8,0x69,0x1f,0x12,0x97,0x17,0xc7,0x55,0x5d,0x50,0xf5,0x5a,0xd9,0xb0,0xbe,0xdc,0x41,0x1e,0xc1,0x13};
    static std::uint8_t c99[32] = {0x39,0xb4,0x1b,0x8b,0x95,0xdd,0xbd,0xee,0x21,0x3b,0x97,0x38,0x40,0xc2,0x88,0x85,0xc7,0x7a,0xdf,0x93,0x8b,0x61,0xa9,0x4b,0xe1,0x3a,0x87,0x54,0x2f,0x7f,0x43,0x98};
    sm9_fp_from_bytes(a, a99);
    sm9_fp_from_bytes(b, b99);
    sm9_fp_mul(c, a, b);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_mul");
    }
}